You are here : python_3cmathcmathrect

cmath.rect() - cmath

Return the complex number x with polar coordinates r and phi.
Equivalent to r * (math.cos(phi) + math.sin(phi)*1j).


Syntax

cmath.rect(r, phi)


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference