Home >>Python cmath Module >Python cmath.tan() Method
Python cmath.tan() method is used to returns the tangent of a complex number
Syntax:cmath.tan(x)
Parameter | Description |
---|---|
x | It is a required parameter to find the tangent of a number.It returns a TypeError If the value is not a number |
import cmath
print (cmath.tan(3 + 5j))
import cmath
print (cmath.tan(3 + 1j))