experience and innovation

Now Hiring!

-------------------------------------------------------------------------------
   Converts equinoctial elements to r and v for an elliptic orbit.
-------------------------------------------------------------------------------
   Form:
   [r, v] = Eq2RV( eq, tol, mu )
-------------------------------------------------------------------------------

   ------
   Inputs
   ------
   eq              (6,:) Elements vector [a,P1,P2,Q1,Q2,l]
   tol                   Tolerance for Kepler's equation solver
   mu                    Gravitational constant

   -------
   Outputs
   -------
   r               (3,1) position vector
   v               (3,1) velocity vector

-------------------------------------------------------------------------------
   References:   Battin, R.H., An Introduction to the Methods and Mathematics
                 of Astrodynamics, AIAA, New York, 1987, pp. 493-494.
-------------------------------------------------------------------------------