Skip to main content

tanh

tanh (num)

The tanh function returns the hyperbolic tangent of num:

tanh(x)=exexex+ex.\displaystyle \tanh (x)=\frac{e^{x}-e^{-x}}{e^{x}+e^{-x}}.

In complex expressions, num is complex, and tanh(num) returns a complex value.

See Also

sinh, cosh, coth