numpy 1.22.4 Pypi GitHub Homepage
Other Docs
NotesParametersReturnsBackRef
angle(z, deg=False)

Notes

Although the angle of the complex number 0 is undefined, numpy.angle(0) returns the value 0.

Parameters

z : array_like

A complex number or sequence of complex numbers.

deg : bool, optional

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

Returns

angle : ndarray or scalar

The counterclockwise angle from the positive real axis on the complex plane in the range (-pi, pi] , with dtype as numpy.float64.

versionchanged

This function works on subclasses of ndarray like :None:None:`ma.array`.

Return the angle of the complex argument.

See Also

absolute
arctan2

Examples

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

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.signal._czt.CZT dask.array.ufunc.exp numpy.imag numpy.ma.core.arctan2 numpy.real numpy.ma.core.arctan dask.array.ufunc.angle scipy.signal._signaltools.convolve2d scipy.signal._filter_design.freqz_zpk scipy.signal._filter_design.sosfreqz scipy.signal._filter_design.iirnotch skimage.restoration.unwrap.unwrap_phase scipy.signal._filter_design.bessel scipy.signal._filter_design.freqz scipy.signal._filter_design.iircomb scipy.signal._filter_design.iirdesign numpy.real_if_close scipy.signal._filter_design.iirpeak

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/lib/function_base.py#1577
type: <class 'function'>
Commit: