Complex Number Attributes : Complex : Data Type PYTHON TUTORIALS


PYTHON TUTORIALS » Data Type » Complex »

 

Complex Number Attributes


Attribute          Description
num.real          Real component of complex number num
num.imag          Imaginary component of complex number num
num.conjugate()      Returns complex conjugate of num

aComplex = -8.3 1.4j
print aComplex
print aComplex.real
print aComplex.imag
print aComplex.conjugate()



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Data Type
» Complex