cmath.rect()

cmath.rect(r, phi) → z: complex

Convert from polar coordinates to rectangular coordinates.