Return the angle of the complex argument.
Parameters: | z : array_like
deg : bool, optional
|
---|---|
Returns: | angle : {ndarray, scalar}
|
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