Availability:Arithmetic function (see is/2)
[ISO]atan2(+YExpr,
+XExpr)Result = arctan(YExpr/XExpr). Result
is the angle in radians. The return value is in the range [-π...π.
Used to convert between rectangular and polar coordinate system.
Note that the ISO Prolog standard demands atan2(0.0,0.0)
to raise an evaluation error, whereas the C99 and POSIX standards demand
this to evaluate to 0.0. SWI-Prolog follows C99 and POSIX.