math.tanh()

Type Function
Library math.*
Return value Number
Revision Release 2024.3703
Keywords tanh, hyperbolic tangent
See also math.sinh()
math.cosh()

Overview

Returns the hyperbolic tangent of x.

Syntax

math.tanh( x )
x (required)

Number. A number.

Examples

print( math.tanh( math.log(2) ) )   ---> 0.6