Back to Numerical Arrays (NumPy)
np.angle
Return the angle of the complex argument.
Syntax
np.angle(z, deg?)
Description
Return the angle of the complex argument. The angle is computed as the counterclockwise angle from the positive real axis, using `arctan2(imag, real)`.
Parameters
| Name | Description |
|---|---|
| z | - A complex number or array of complex numbers |
| deg(optional) | - Return angle in degrees if true, radians if false (default) |
Returns
Promise<NDArray>