Home >>Python cmath Module >Python cmath.polar() Method
Python cmath.polar() method in python is used to returns a tuple of modulus and phase and converts a complex number (defined by modulus r and phase angle phi) to polar coordinates.
Syntax:cmath.polar(x)
Parameter | Description |
---|---|
x | It is a required parameter to find polar coordinates of a given number |
import cmath
print (cmath.polar(4 + 6j))
print (cmath.polar(2 + 1j))
import cmath
print (cmath.polar(1 + 8j))