Metoda Python math.tanh().
Příklad
Najděte hyperbolický tangens různých čísel:
# 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))
Definice a použití
Metoda math.tanh()
vrací hyperbolický tangens čísla.
Syntax
math.tanh(x)
Hodnoty parametrů
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic tangent of. If the value is not a number, it returns a TypeError |
Technické údaje
Návratová hodnota: | Hodnota float představující hyperbolický tangens čísla |
---|---|
Verze Pythonu: | 1.4 |