C+ C NAME: C EqKepler C PURPOSE: C Kepler's equation is used in the determination of orbital positions. C It gives the relation between mean and eccentric anomaly (for given C orbit eccentricity). C CATEGORY: C Celestial mechanics C CALLING SEQUENCE: function EqKepler(E) C INPUTS: C E real eccentric anomaly (degrees) C M real mean anomaly (degrees) C ee real orbit ellipticity (eccentricity) C OUTPUTS: C EqKepler real fnc value C INCLUDE: include 'math.h' C COMMON BLOCKS: real M real ee common /KEPLER/ M,ee C PROCEDURE: C The eccentric anomaly is the root of Kepler's equation: C EqKepler = X-(180/PI)*ee*sin(X)-M = 0 C See O. Montenbruck, "Practical Ephemeris Calculations", Springer C (1989), par. 3.1.1.4, p. 44 C MODIFICATION HISTORY: C 1990, Paul Hick (UCSD/CASS; pphick@ucsd.edu) C- real E if (ee .lt. 1.0) then EqKepler = E-MATH__DPR*ee*sind(E )-M else EqKepler = E-MATH__DPR*ee*sinh(E*MATH__RPD)+M end if return end