How can I use the Newton Method to find the eccentric anomaly for Mars?

  • Thread starter Thread starter smmSTV
  • Start date Start date
AI Thread Summary
To compute the Eccentric Anomaly (E) for Mars using the Newton Method, start with Kepler's equation, reformulated as M = E - e*sin(E). Implement the iterative formula E_{n+1} = E_{n} - f(E)/f'(E), where f(E) = E - e*sin(E) - M and f'(E) = 1 - e*cos(E). Initialize E with a value, such as 0 at perihelion, and update it in each iteration until the convergence criterion, f(E)/f'(E) < 0.00001, is met. Additionally, the distance of Mars from the sun can be calculated using r = a * (1 - e^2) / (1 + e * cos(TA)), where TA is the True Anomaly and a is the Semi-Major Axis. This approach will help generate the required table for the astronomy class.
smmSTV
Messages
2
Reaction score
0
So I'm in need of some more help for my astronomy class again.
My professor wants us to write a program that outputs a table with the distance of Mars from the sun (r) and it's true anomaly. The problem is that i need to compute the Eccentric Anomaly (E) from the Mean Anomaly (M). Kepler's equation is E = M + εsin(E), but I can't get it down in terms of E. Seeing as how I'm using c++, it is kind of a necessity. One website seemed to have an equation involving Einitial and Efinals, but it didn't do me any good. Is the idea to set the original Einitial equal to 0 at t=0 (the perihelion point) and find E final in terms of that? At the end of each iteration (I'm running a while loop) the Eintial of the next iteration would be set to the Efinal of the current loop. Anybody got any ideas? Thanks
 
Astronomy news on Phys.org
The correct equation is M = E - e*sin(E)

Solve using the Newton Method:

E_{n+1} = E_{n} - \frac{f(E)}{f&#039;(E)}
where f(E) = E - e * sin(E) - M
and f'(E) = 1 - e * cos(E)

Loop the above equations until:
\frac{f(E)}{f&#039;(E)} &lt; 0.00001Or some substantially low number not zero.

Also,r = \frac{a * (1 - e ^ 2)}{(1 + e * cos(TA))}
where TA - True Anomaly
and a - Semi-Major Axis of Mars
 
Last edited:
Is a homemade radio telescope realistic? There seems to be a confluence of multiple technologies that makes the situation better than when I was a wee lad: software-defined radio (SDR), the easy availability of satellite dishes, surveillance drives, and fast CPUs. Let's take a step back - it is trivial to see the sun in radio. An old analog TV, a set of "rabbit ears" antenna, and you're good to go. Point the antenna at the sun (i.e. the ears are perpendicular to it) and there is...
This thread is dedicated to the beauty and awesomeness of our Universe. If you feel like it, please share video clips and photos (or nice animations) of space and objects in space in this thread. Your posts, clips and photos may by all means include scientific information; that does not make it less beautiful to me (n.b. the posts must of course comply with the PF guidelines, i.e. regarding science, only mainstream science is allowed, fringe/pseudoscience is not allowed). n.b. I start this...
How does light maintain enough energy in the visible part of the spectrum for the naked eye to see in the night sky. Also, how did it start of in the visible frequency part of the spectrum. Was it, for example, photons being ejected at that frequency after high energy particle interaction. Or does the light become visible (spectrum) after hitting our atmosphere or space dust or something? EDIT: Actually I just thought. Maybe the EM starts off as very high energy (outside the visible...

Similar threads

Back
Top