Returns the hyperbolic tangent of a number.
Syntax
Math.tanh(
x
)
Remarks
The return value is the same as (exp(x) - exp(-x))/(exp(x) + exp(-x)). If x is NaN, the result is NaN.
Requirements
Supported in Microsoft Edge (Edge browser). Also supported in Store apps (Microsoft Edge on Windows 10). See Version Information.
Not supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards, Internet Explorer 10 standards, Internet Explorer 11 standards. Not supported in Windows 8.1.
Applies To: Math Object
See Also
Math.acos Function
Math.acosh Function
Math.asin Function
Math.atan Function
Math.atan2 Function
Math.cos Function
Math.cosh Function
Math.sin Function
Math.sinh Function

