Distance from the Sun & Orbital Speed - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: HP Prime Software Library (/forum-15.html) +--- Thread: Distance from the Sun & Orbital Speed (/thread-4244.html) |
Distance from the Sun & Orbital Speed - Eddie W. Shore - 06-27-2015 04:00 PM Link to the full blog entry: http://edspi31415.blogspot.com/2015/06/hp-prime-orbital-speed-and-velocity.html Equations Angle used: θ = 360° * d/N d = number of days from perihelion N = number of days in a planet’s “year”, or number of days it takes for a planet to make one orbit around the Sun Distance from Sun (in meters): r = (a*(1 - ϵ)/(1 + ϵ cos θ )) a = length of semi-major axis of a planet’s orbit ϵ = the eccentricity of an orbit (ellipse) Orbital Speed (in meters/second): v = √( G * (M_Sun + M_planet) * (2/r – 1/a)) G = Gravitational Constant = 6.63784 * 10^-11 m^3/(s^2 *kg) M_Sun = Mass of the Sun ≈ 1.9884 * 10^30 kg M_planet = Mass of the planet Code: EXPORT ORBSD() |