0
Can anyone explain me what is complex numbers in python? How do we represent it? What z.real and z.imag does? Explain in detail
2 Answers
0
In python complex number are of form :
z = a+bj
a = Real part
b = Imaginary part of complex number.
Value of j = â-1
0
Complex numbers extend the idea of the one-dimensional number line to the two-dimensional complex plane by using the horizontal axis for the real part and the vertical axis for the imaginary part. The complex number
a+bi
can be identified with the point
(a,b).
Complex numbers are used in many scientific fields, including engineering, electromagnetism, quantum physics, and applied mathematics, such as chaos theory.