tanhfunktsiooni
The tanh function, also known as the hyperbolic tangent function, is a mathematical function defined as the ratio of the hyperbolic sine (sinh) to the hyperbolic cosine (cosh). Mathematically, it is expressed as tanh(x) = sinh(x) / cosh(x), which further simplifies to tanh(x) = (e^x - e^-x) / (e^x + e^-x).
The tanh function maps any real number to a value between -1 and 1. Its output approaches
It is an odd function, meaning tanh(-x) = -tanh(x), and it is always increasing. The tanh function finds