Méthode Python cmath.cosh()
Exemple
Trouver le cosinus hyperbolique d'un nombre complexe :
#import cmath for complex number operations
import cmath
#find
the hyperbolic cosine of a complex number
print (cmath.cosh(2 + 3j))
Définition et utilisation
La cmath.cosh()
méthode renvoie le cosinus hyperbolique d'un nombre complexe.
Syntaxe
cmath.cosh(x)
Valeurs des paramètres
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic cosine of |
Détails techniques
Valeur de retour : | Une complex valeur, représentant le cosinus hyperbolique d'un nombre complexe |
---|---|
Version Python : | 1.5 |