Home >>Python cmath Module >Python cmath.phase() Method
Python cmath.phase() method in python is used to returns the phase of a given complex number and it can be expressed in terms of its magnitude and angle.
Syntax:cmath.phase(x)
Parameter | Description |
---|---|
x | It is a required parameter to find the phase of a number |
import cmath
print (cmath.phase(4 +0j))
import cmath
print (cmath.phase(4 +5j))