Distance from the Sun & Orbital Speed +- HP Forums (http://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 11:00 AM Link to the full blog entry: http://edspi31415.blogspot.com/2015/06/hp-prime-orbital-speed-and-velocity.html The program ORBSD calculates approximately: The distance of a planet (and dwarf planet Pluto) is from the sun and the speed of the planet, given at any given the number of Earth days (and partial Earth days) from the perihelion. A planet is at its perihelion is when the planet is closest to the Sun in its elliptical orbit. Earth is at its perihelion approximately January 3 to January 5 annually. 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() Planetary Data (see sources below)
** approximate values Sources Calvert, James B. “Elllipse” http://mysite.du.edu/~jcalvert/math/ellipse.htm 2002. Retrieved June 20, 2015. Glover, Thomas J. “Pocket Ref” Sequoia Publishing, Inc. Littleton, CO. 2012 “Orbital Speed” Wikipedia https://en.wikipedia.org/wiki/Orbital_speed Retrieved June 20, 2015 U.S. Navy “Astronomical Constants – The Astronomical Almanac Online” http://asa.usno.navy.mil/static/files/2015/Astronomical_Constants_2015.pdf 2015. |