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