This function returns y = tanh(u), with -∞ < u < ∞:
function tanh extends Modelica.Math.Icons.AxisCenter; input Real u "Independent variable"; output Real y "Dependent variable y=tanh(u)"; end tanh;