numpy.
angle
Return the angle of the complex argument.
A complex number or sequence of complex numbers.
Return angle in degrees if True, radians if False (default).
The counterclockwise angle from the positive real axis onthe complex plane, with dtype as numpy.float64.
See also
arctan2,absolute
arctan2
absolute
Examples
>>>np.angle([1.0,1.0j,1+1j])# in radiansarray([ 0. , 1.57079633, 0.78539816])>>>np.angle(1+1j,deg=True)# in degrees45.0
numpy.divmod
numpy.real