.. highlightlang:: us .. index:: tanh .. _tanh: tanh ==== .. us.tag tanh ENGLISH math-trigo :ref:`tanh` returns the hyperbolic tangent of its parameter. .. function:: r = tanh(m) .. us.return **Return Value** *r* is the hyperbolic tangent of *m*. .. us.params **Parameters** .. uparam:: m *m* is a real or complex matrix. .. us.comment **Comment** Algorithm: The calculation is reached using this formula: sinh(x) ./ cosh(x). .. seealso:: :ref:`overview-mathematic`, :ref:`atanh` :sub:`id-438090`