atan2Imz
atan2Imz is a mathematical function used to determine the phase angle of a complex number by applying the two-argument arctangent to its imaginary and real parts. In this sense, atan2Imz(z) can be viewed as the principal value of the argument of z = x + i y, computed as atan2(y, x). The name highlights the role of the imaginary part as the first argument and the real part as the second.
Definition and domain: For real x and y with not both zero, atan2Imz(y, x) = atan2(y, x). When
Relation to atan2 and to Im/Re: atan2Imz essentially mirrors the standard atan2 function used in two-argument
Properties: The result lies in the range (-π, π], with the exact quadrant determined by the signs of
Applications: It is used to compute the phase of complex-valued signals, in plotting and analysis of complex
Numerical considerations: Use robust implementations of atan2 to handle edge cases where x and/or y are near