Python cmath.polar() Method

cmath Methods : Convert a complex number to polar coordinates form

Definition and Usage

The cmath.polar() method converts a complex number to polar coordinates. It returns a tuple of modulus and phase.

In polar coordinates, a complex number is defined by modulus r and phase angle phi.

Syntax

cmath.polar(x)

Parameter Values

Parameter Description
x Required. A number to find polar coordinates of

Technical Details

Return Value: A tuple value, representing polar coordinates
Python Version: 2.6