Good afternoon, everyone.
Is there any way to find the parameters of an ellipse, knowing random n points of the ellipse? Say, 3, 5, 10, 20 or any other reasonable number that doesn't require a lot of calculations/iterations/processor time? I'm primarily interested in the semi-major axis and eccentricity (a, e) of the ellipse.
What I have now is 2d simulator of space in the context of a two-body problem, so it basically just gravity simulator. Even the one-body problem, if there such one, because gravity in my model only works in one direction, from the orbiting object to the central body, and there is always only one central body in the sphere of influence, which is in one of the two focuses of a ellipse. I have points in the form of (P(x,y), r), where r is the distance to the central body at a particular point, and P(x,y) is the coordinates of the point in the coordinate grid. So, in essence, these points are the result of modeling a process over time. I want to go from a simulation to an more or less analytical solution.
I have found several similar questions and even answers, but some say it is impossible because there are an infinite number of possible ellipses going through these points, others say it is possible and provide matrices and equations that are hard to understand without knowing what they are and whether it applies to the scenario at all. I've also heard of some methods like linear(...) regression or ellipse fitting, but they seem to come from machine learning, and you have to have initial guesses for those values, so I guess that's not what I need. I also found notes that say I have to solve some numerical methods, but again without specifics it is extremely difficult to understand.
I've never studied math or physics in a high-profile sense, so please correct me if I'm wrong about anything. I would be very grateful for a clear and simple answer and a rough direction, if possible, or a rough idea of where I should even go.


- The position of one of the focal points. The position is in global coordinates grid, not relative to Origin. So we know nothing about Origin.
- n points, the point is (x, y, r), where (x, y) are global grid coordinates and r is the distance to the known focal point
– Rutex Mar 24 '23 at 19:53