Python - Methode cmath.cosh()
Beispiel
Finden Sie den hyperbolischen Kosinus einer komplexen Zahl:
#import cmath for complex number operations
import cmath
#find
the hyperbolic cosine of a complex number
print (cmath.cosh(2 + 3j))
Definition und Verwendung
Die cmath.cosh()
Methode gibt den hyperbolischen Kosinus einer komplexen Zahl zurück.
Syntax
cmath.cosh(x)
Parameterwerte
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic cosine of |
Technische Details
Rückgabewert: | Ein complex Wert, der den hyperbolischen Kosinus einer komplexen Zahl darstellt |
---|---|
Python-Version: | 1.5 |