Processing math: 100%

palPlanet

Approximate heliocentric position and velocity of major planet

Description:

Calculates the approximate heliocentric position and velocity of the specified major planet.

Invocation

void palPlanet ( double date, int np, double pv[6], int j );

Arguments

date = double (Given)
TDB Modified Julian Date (JD-2400000.5).
np = int (Given)
planet (1=Mercury, 2=Venus, 3=EMB, 4=Mars, 5=Jupiter, 6=Saturn, 7=Uranus, 8=Neptune)
pv = double [6] (Returned)
heliocentric x,y,z,xdot,ydot,zdot, J2000, equatorial triad in units AU and AU/s.
j = int (Returned)
  • -2 = solution didn t converge.

  • -1 = illegal np (1-8)

  • 0 = OK

  • +1 = warning: year outside 1000-3000

Notes: