Método Python math.tanh()
Exemplo
Encontre a 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))
Definição e uso
O math.tanh()
método retorna a tangente hiperbólica de um número.
Sintaxe
math.tanh(x)
Valores de parâmetro
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic tangent of. If the value is not a number, it returns a TypeError |
Detalhes técnicos
Valor de retorno: | Um float valor, representando a tangente hiperbólica de um número |
---|---|
Versão do Python: | 1,4 |