Function vsop87::vsop87e::jupiter
[−]
[src]
pub fn jupiter(jde: f64) -> (f64, f64, f64)
Calculates VSOP87E solution for Jupiter
This function calculates the VSOP87E solution (barycentric ecliptic rectangular coordinates for
the equinox J2000.0) for the planet Jupiter. The parameter needed is the Julian Day Efemeris
(JDE) for the given date. It returns, in order, a tuple with the values x, y, z of the
VSOP87E solution. Those values are the rectangular coordinates of the planet, in AU, with the
barycenter of the solar system in the center and the ecliptic plane as reference z = 0
.
Examples
use vsop87::vsop87e; let (x, y, z) = vsop87e::jupiter(2268920.0); assert!(x > 4.5819830418 && x < 4.5819830420); assert!(y > -1.9854861384 && y < -1.9854861382); assert!(z > -0.0959289 && z < -0.0959249);