The TANH function accepts any number and returns the hyperbolic tangent of that number. TANH(x) for a real argument x is computed either by means of the following identities or by a rational approximation depending on the value of the argument:
TANH(-x) = TANH(x) TANH(x) = 1 - 2((exp(2x) + 1)