Metoda Python math.cosh().
Příklad
Najděte hyperbolický kosinus různých čísel:
# Import math Library
import math
# Return the hyperbolic cosine of
different numbers
print (math.cosh(1))
print (math.cosh(8.90))
print (math.cosh(0))
print (math.cosh(1.52))
Definice a použití
Metoda math.cosh()
vrací hyperbolický kosinus čísla (ekvivalent (exp(číslo) + exp(-číslo)) / 2).
Syntax
math.cosh(x)
Hodnoty parametrů
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic cosine of. If the value is not a number, it returns a TypeError |
Technické údaje
Návratová hodnota: | Hodnota float představující hyperbolický kosinus čísla |
---|---|
Verze Pythonu: | 1.4 |