Math 326, Feb 19 - Planetary Motion


If  medieval europeans and central americans can model the motion of planets, so can we.  Well, we better stick to a simplified version since those astronomers keep track of an astounding number of factors.  We are assuming a heliocentric system, so the sun is at the origin and doesn't move.  Acceleration due to gravity is proportional to the inverse square of the distance between the planet and the sun, in the direction toward the sun.  After working out the algebra, this means  a is given by  a = -(c/r3)(x,y).

Rather than use typical units like meters and seconds (for which orbits would contain huge numbers), we set the gravitational constant c=100, initial position to be (x,y)=(100, 0), initial velocity to be (vx,vy)=(0,1) and time steps increasing by 1 each step.  Run your model for 2600 time steps.


Additional Questions

                      xmoon(t) = xplanet + (Moon Radius)*COS( 2*PI()*T / (Moon Period) )
                      ymoon(t) = yplanet + (Moon Radius)*SIN( 2*PI()*T / (Moon Period) )