ID EN
Complex Math

rect

Python 3.11

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

Syntax

PYTHON
cmath.rect(r, phi)