Siddhanta Parity API Documentation - v1.3.0
    Preparing search index...
    • Returns the product of mass and universal gravitational constant of a Solar System body.

      For problems involving the gravitational interactions of Solar System bodies, it is helpful to know the product GM, where G = the universal gravitational constant and M = the mass of the body. In practice, GM is known to a higher precision than either G or M alone, and thus using the product results in the most accurate results. This function returns the product GM in the units au^3/day^2. The values come from page 10 of a JPL memorandum regarding the DE405/LE405 ephemeris.

      Parameters

      • body: Body

        The body for which to find the GM product. Allowed to be the Sun, Moon, EMB (Earth/Moon Barycenter), or any planet. Any other value will cause an exception to be thrown.

      Returns number

      The mass product of the given body in au^3/day^2.