Python cmath.cosh() Methode
Voorbeeld
Vind de cosinus hyperbolicus van een complex getal:
#import cmath for complex number operations
import cmath
#find
the hyperbolic cosine of a complex number
print (cmath.cosh(2 + 3j))
Definitie en gebruik
De cmath.cosh()
methode retourneert de cosinus hyperbolicus van een complex getal.
Syntaxis
cmath.cosh(x)
Parameterwaarden
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic cosine of |
Technische details
Winstwaarde: | Een complex waarde die de cosinus hyperbolicus van een complex getal weergeeft |
---|---|
Python-versie: | 1.5 |