SphOrb:

Path: Orbit/OrbitMechanics

% Point mass orbit equations in equatorial spherical coordinates.
   (phi is 0 in the equatorial plane and ?/2 at the pole)

   Since version 1.
--------------------------------------------------------------------------
   Form:
   xd = SphOrb( x, a, mu )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x                (6,1) State [r;theta;phi;dr/dt;dtheta/dt;dphi/dt]
   a                (3,1) acceleration vector
   mu                     gravitational parameter

   -------
   Outputs
   -------
   xd               (6,1) state derivative

--------------------------------------------------------------------------
	References:   Bate, R. R., Fundamentals of Astrodynamics. pp. 389-390.
--------------------------------------------------------------------------

Back to the Orbit Module page