The tanh functions return the hyperbolic tangent their argument, calculated as (e**x - e**(-x))/(e**x + e**(-x)).