Python cmath.cosh() Metode
Voorbeeld
Vind die hiperboliese cosinus van 'n komplekse getal:
#import cmath for complex number operations
import cmath
#find
the hyperbolic cosine of a complex number
print (cmath.cosh(2 + 3j))
Definisie en gebruik
Die cmath.cosh()
metode gee die hiperboliese cosinus van 'n komplekse getal terug.
Sintaksis
cmath.cosh(x)
Parameterwaardes
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic cosine of |
Tegniese besonderhede
Terugkeerwaarde: | 'n complex Waarde wat die hiperboliese cosinus van 'n komplekse getal voorstel |
---|---|
Python weergawe: | 1.5 |