Loading [MathJax]/extensions/tex2jax.js
numpy 1.24.3 Pypi GitHub Homepage
Other Docs

NotesParametersReturns

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.

Return the angle of the complex argument.

See Also

absolute
arctan2

Examples

np.angle([1.0, 1.0j, 1+1j])               # in radians
np.angle(1+1j, deg=True)                  # in degrees
See :

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.

numpy.ma.core:absolutecore:absolutenumpy.ma.core:arctan2core:arctan2

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/ma/core.py#None
type: <class 'numpy.ma.core._MaskedUnaryOperation'>
Commit: