Oh. Wasn't there supposed to be an analytical exact solution to the 2-body problem? I am writing a n-body simulator and I wanted to compare the numerical integration methods to an exact solution in the case of two bodies...
Could you please give me some reference? I didn't see it mentioned...
I'm sorry but I still don't understand it :(
I get it that the Acos(θ)+Bsin(θ) can be rewritten using only a single cosine...but that doesn't tell me how to compute θ(t). Define it so that the phase is 0? How? Isn't it changing with time?
Homework Statement
I'm trying to solve the 2-body problem analytically by following this book:
http://books.google.com/books?id=imN_8IuZ8l8C&lpg=PR1&dq=David%20Betounes%20Differential%20equations&pg=PA60#v=onepage&q&f=false"
(note: the book preview is not complete, but you can find pages 69-73...
I know Euler is extremely inprecise, I'll definitely implement other algorithms. I mentioned it so you could maybe add som pseude code like "somehow_compute_gravity_force_with_lag()" into line 3, for example, so I would get the basic idea...
Thanks for the resources, I'll try to look at them...
I'm mostly considering smaller systems, like the Solar system. I was wondering how much different results would the added relativity produce in some cases, like in the orbit of Mercury and such. I could also try to simulate some star cluster, although I'm not really required to do that.
How...
Do you happen to know about any resources on the gravitational N-body problem and general relativity? Ideally some open-source implementations or pseudo code.
I'm doing a N-body simulator for my bachelor's thesis and my advisor was wondering if I could add some algorithms that take general...