In a major assignment I am to determine the semi-major axis of an elliptic orbit for the star S2 around Sagittarius A*. I found some data that I have used to fit the points to an ellipse - however the equation I get is in terms of
$ax^2 + bxy + cy^2 + dx + ey + f = 0$
rather than
$ \frac{x^2}{a^2} + \frac{y^2}{ b^2}= 1$.
Can any of you smart people teach me how to 'translate' it, or if it's even necessary in order to determine the semi-major axis of the ellipse?