Answers for "numpy complex number"

0

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
Posted by: Guest on February-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language