Wasn't sure exactly what the title of this post should be.(adsbygoogle = window.adsbygoogle || []).push({});

Working on a side project using machine learning and the solar system (using n-body simulator).

Let's say I have two bodies with coordinates:

and their respective orbits are:Code (Text):Body1: x=-1.42790218981 y=1.4003882805 z=0.0

Body2: x=0.983274588755 y=0.0477301860159 z=0.0

Can I figure out the coordinates of Body2 anywhere along the orbit? I'm trying to find how the smallest distance between the two bodies if they continue pursuing their orbits?Code (Text):

B1: a=2.00000001449 e=7.84859710126e-09 inc=0.0 Omega=0.0 omega=2.75273162508 f=-0.386809335815

B2: a=1.36522588428 e=0.41230308113 inc=0.0 Omega=0.0 omega=1.24417006229 f=-1.19566606343

Please let me know if I need to clear up some details.

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# B Calculating distances with an elliptical orbit

Have something to add?

Draft saved
Draft deleted

**Physics Forums | Science Articles, Homework Help, Discussion**