The MathWorld resource here gives a formula for the counter-clockwise angle $\phi$ between the x-axis and the major-axis of an ellipse $a x^2 +2bxy + cy^2 + 2dx + 2fy + g = 0$ as
But what do I do when $a=c$? For example the ellipse below is rotated by $\pi/4$ but $a$ and $c$ are equal so are undefined in the above equation. Does this formula need a slight tweak (with a "$\leq$" symbol)?


atan2()operator. – John Alexiou Oct 26 '15 at 15:04