ID EN
Complex Math

polar

Python 3.11

Return the representation of x in polar coordinates. Returns a pair (r, phi) where r is the modulus of x and phi is the phase of x. polar(x) is equivalent to (abs(x), phase(x)).

Syntax

PYTHON
cmath.polar(x)