Type Function Library math.* Return value Number Revision Release 2022.3683 Keywords tanh, hyperbolic tangent See also math.sinh()math.cosh()
Returns the hyperbolic tangent of x.
x
math.tanh( x )
Number. A number.
print( math.tanh( math.log(2) ) ) ---> 0.6