ns equations