Méthode Python cmath.tanh()
Exemple
Trouver la tangente hyperbolique d'un nombre complexe :
#Import cmath Library
import cmath
#Return the hyperbolic tangent
of a complex number
print (cmath.tanh(2 + 3j))
Définition et utilisation
La cmath.tanh()
méthode renvoie la tangente hyperbolique d'un nombre complexe.
Syntaxe
cmath.tanh(x)
Valeurs des paramètres
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic tangent of. If the value is not a number, it returns a TypeError |
Détails techniques
Valeur de retour : | Une complex valeur, représentant la tangente hyperbolique d'un nombre complexe |
---|---|
Version Python : | 1.5 |