numpy complex math code example
Example: numpy complex number
z = 1j #Imaginary unit
z = 3+4j #A complex number, 3+4i
z = complex(3,4) #A complex number, 3+4i
abs(3+4j) #Absolute value (modulus)
z.real #Real part
z.imag #Imaginary part
angle(z,deg=False) #Argument (radian)
z.conjugate() #Complex conjugate