RV2A:

Path: SC/BasicOrbit

% Computes the semimajor axis given position and velocity magnitudes.
   The default central body is the Earth.
--------------------------------------------------------------------------
   Form:
   a = RV2A( r, v, mu )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   r       (1,:)   Position magnitude
   v       (1,:)   Velocity magnitude
   mu      (1,1)   Gravitational parameter (default is Earth)
                        
   -------
   Outputs
   -------
   a       (1,:)   Semimajor axis

--------------------------------------------------------------------------

Back to the SC Module page