Python Math.tanh() Metoda
Przykład
Znajdź tangens hiperboliczny różnych liczb:
# Import math Library
import math
# Return the hyperbolic tangent of
different numbers
print(math.tanh(8))
print(math.tanh(1))
print(math.tanh(-6.2))
Definicja i użycie
Metoda math.tanh()
zwraca tangens hiperboliczny liczby.
Składnia
math.tanh(x)
Wartości parametrów
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic tangent of. If the value is not a number, it returns a TypeError |
Szczegóły techniczne
Wartość zwrotu: | Wartość float reprezentująca tangens hiperboliczny liczby |
---|---|
Wersja Pythona: | 1,4 |