Which is the correct formal definition for the angle function $\theta(x,y)$ for a vector $(x,y)$ or complex number $x+iy$ with unit magnitude, such as $e^{i \theta}=x+iy$?
Inverse trigonometric functions do not map into the full circle.
In Matlab,
$\theta=\text{atan2}(x,y):x \in [-1,1], y \in [-1,1] \to \theta \in [-\pi,\pi]$
But i dont think this is a formal standard.
I checked this article regarding the Argument Function, citing the last formula for the double angle tangent, as the most formal and numerically stable definition for the argument function, and hence, for the $\text{atan2}$ function i have been able to find so far:
$$ \text{atan2}(x,y)= \left\{\begin{array}{cc} 2\arctan\left(\frac{\sqrt{x^2+y^2}-x}y \right) & y\ne0\\ 0 & y=0, x>0\\ \pi & y=0, x<0\\ \text{undef.} & y=0, x=0 \end{array} \right. $$