Due: October 24, 2003
Assignment
As described in lecture and on the web, Kepler's equation is:
where M is the mean anomaly, e is the orbital eccentricity, and E is the eccentric anomaly. We need to know E so that we can predict the location of the GPS satellites. Kepler's equation is used to solve for E numerically. One method that can be used is called Newton's method. Say F is a function of x. We can determine successive values of x by the following:
Rewriting:
Given e and M, find E (in degrees):
You are required to solve Kepler's equation in a function. E should be returned in radians. The inputs to your Kepler function are to be defined in your main program.
Turn in:Your Kepler function and answers (to 6 decimal places).