Python math.tanh() Metodo
Esempio
Trova la tangente iperbolica di numeri diversi:
# 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))
Definizione e utilizzo
Il math.tanh()
metodo restituisce la tangente iperbolica di un numero.
Sintassi
math.tanh(x)
Valori dei parametri
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic tangent of. If the value is not a number, it returns a TypeError |
Dettagli tecnici
Valore di ritorno: | Un float valore, che rappresenta la tangente iperbolica di un numero |
---|---|
Versione Python: | 1.4 |