# MathLib.arctan2()

## Specification

MathLib.arctan2 is handling the special cases as defined by the IEEE 754-2008 standard:- MathLib.arctan2(±0, -0) = ±π
- MathLib.arctan2(±0, +0) = ±0
- MathLib.arctan2(±0, x) = ±π for x<0
- MathLib.arctan2(±0, x) = ±0 for x>0
- MathLib.arctan2(y, ±0) = -π/2 for y < 0
- MathLib.arctan2(y, ±0) = +π/2 for y > 0
- MathLib.arctan2(±y, -∞) = ±π for finite y > 0
- MathLib.arctan2(±y, +∞) = ±0 for finite y > 0
- MathLib.arctan2(±∞, x) = ±π/2 for finite x
- MathLib.arctan2(±∞, -∞) = ±3π/4
- MathLib.arctan2(±∞, +∞) = ±π/4
- otherwise MathLib.arctan2(y, x) = $-i \ln\left(\frac{x+iy}{\sqrt{x^2+y^2}}\right)$