Método Python math.tanh()
Ejemplo
Encuentra la tangente hiperbólica de diferentes números:
# 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))
Definición y uso
El math.tanh()
método devuelve la tangente hiperbólica de un número.
Sintaxis
math.tanh(x)
Valores paramétricos
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic tangent of. If the value is not a number, it returns a TypeError |
Detalles técnicos
Valor devuelto: | Un float valor, que representa la tangente hiperbólica de un número |
---|---|
Versión de Python: | 1.4 |