larray.angle

larray.angle(*args, **kwargs)

Return the angle of the complex argument.

larray specific variant of numpy.angle.

Documentation from numpy:

Parameters
zarray_like

A complex number or sequence of complex numbers.

degbool, optional

Return angle in degrees if True, radians if False (default).

Returns
anglendarray or scalar

The counterclockwise angle from the positive real axis on the complex plane, with dtype as numpy.float64.

..versionchanged:: 1.16.0

This function works on subclasses of ndarray like ma.array.

See also

arctan2
absolute

Examples

>>> np.angle([1.0, 1.0j, 1+1j])               # in radians
array([ 0.        ,  1.57079633,  0.78539816])
>>> np.angle(1+1j, deg=True)                  # in degrees
45.0