9951 explained code solutions for 126 technologies


python-numpyHow to get angle in degrees from complex number


import numpy as np
za = np.angle(3+4j, True)ctrl + c
3

real part

4

imaginary part

.angle

computes angle of the complex argument

za

will contain computed value in degrees

True

set second argument to True to return value in degrees