The cmath.rect()
function converts a complex number from polar coordinates(modulus and phase/angle) to rectangular coordinates(real and imaginary parts).
cmath.rect(r, phi)
copy
r |
The modulus, required. |
phi |
The phase angle, required. |
The function returns a complex number whose polar coordinates are (r, phi)
.