Academy
Formulas/maths/M2 Modulus Argument/Principal Argument by Quadrant

Principal Argument by Quadrant

arctan(b/a) gives the correct angle only in Q1 and Q4. For Q2 and Q3 (a < 0), a correction of ±π is needed to land in (−π, π]. This is the practical formula for computing Arg(z) from coordinates.
Derivation
Derivation not yet written.