Metoda cmath.cosh() Pythonu
Příklad
Najděte hyperbolický kosinus komplexního čísla:
#import cmath for complex number operations
import cmath
#find
the hyperbolic cosine of a complex number
print (cmath.cosh(2 + 3j))
Definice a použití
Metoda cmath.cosh()
vrací hyperbolický kosinus komplexního čísla.
Syntax
cmath.cosh(x)
Hodnoty parametrů
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic cosine of |
Technické údaje
Návratová hodnota: | Hodnota complex představující hyperbolický kosinus komplexního čísla |
---|---|
Verze Pythonu: | 1.5 |