numpy complex number

Solutions on MaxInterview for numpy complex number by the best coders in the world

showing results for - "numpy complex number"
Paula
03 Aug 2018
1z = 1j						#Imaginary unit
2z = 3+4j					#A complex number, 3+4i
3z = complex(3,4)			#A complex number, 3+4i
4abs(3+4j)					#Absolute value (modulus)
5z.real						#Real part
6z.imag						#Imaginary part
7angle(z,deg=False)			#Argument (radian)
8z.conjugate()				#Complex conjugate