Python - Methode cmath.tanh()
Beispiel
Finden Sie den hyperbolischen Tangens einer komplexen Zahl:
#Import cmath Library
import cmath
#Return the hyperbolic tangent
of a complex number
print (cmath.tanh(2 + 3j))
Definition und Verwendung
Die cmath.tanh()
Methode gibt den hyperbolischen Tangens einer komplexen Zahl zurück.
Syntax
cmath.tanh(x)
Parameterwerte
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic tangent of. If the value is not a number, it returns a TypeError |
Technische Details
Rückgabewert: | Ein complex Wert, der den hyperbolischen Tangens einer komplexen Zahl darstellt |
---|---|
Python-Version: | 1.5 |