HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
cmath Methods : Convert a complex number to polar coordinates form
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.
Parameter | Description |
---|---|
x | Required. A number to find polar coordinates of |
Return Value: | A tuple value, representing polar
coordinates |
---|---|
Python Version: | 2.6 |