Python Math.cosh() Metoda
Przykład
Znajdź cosinus hiperboliczny różnych liczb:
# 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))
Definicja i użycie
Metoda math.cosh()
zwraca cosinus hiperboliczny liczby (odpowiednik (exp(number) + exp(-number)) / 2).
Składnia
math.cosh(x)
Wartości parametrów
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic cosine of. If the value is not a number, it returns a TypeError |
Szczegóły techniczne
Wartość zwrotu: | Wartość float reprezentująca cosinus hiperboliczny liczby |
---|---|
Wersja Pythona: | 1,4 |