Generalized Form of the Sonar Equations