To extract these parts from a complex number z, use z.real and z.imag. : Complex : Data Type PYTHON TUTORIALS


PYTHON TUTORIALS » Data Type » Complex »

 

To extract these parts from a complex number z, use z.real and z.imag.


a=1.5+0.5j
print a.real
print a.imag



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Data Type
» Complex