ak.angle#
Defined in awkward.operations.ak_angle on line 17.
- ak.angle(val, deg=False, highlevel=True, behavior=None, attrs=None)#
Returns the counterclockwise angle of each complex element in radians or degrees.
- Parameters:
val – array_like Input array.
deg (bool, default is False) – If True, returns angles in degrees, otherwise in radians.
highlevel (bool, default is True) – If True, return an
ak.Array; otherwise, return a low-levelak.contents.Contentsubclass.behavior (None or dict) – Custom
ak.behaviorfor the output array, if high-level.attrs (None or dict) – Custom attributes for the output array, if high-level.
- Returns:
The counterclockwise angle from the positive real axis on the complex plane in the range
(-pi, pi], with dtype as a float.