Hyperbolic Tangent Calculator

Enter a number to find its hyperbolic tangent.

Any number from -700 to 700, such as 1, -2 or 0.5.

Try

Result

You enteredtanh⁡0.5\tanh 0.5

tanh⁡0.5≈0.462117\displaystyle \tanh 0.5 \approx 0.462117

Values marked ≈ are given to 6 decimal places.

Show the work
  1. The hyperbolic tangent

    The hyperbolic tangent is built from the exponentials exe^{x} and e−xe^{-x}. It stays strictly between −1 and 1.

    Using tanh⁡x=sinh⁡xcosh⁡x=ex−e−xex+e−x\tanh x = \frac{\sinh x}{\cosh x} = \frac{e^{x} - e^{-x}}{e^{x} + e^{-x}}

    x=0.5x = 0.5
  2. The two exponentials

    Work out exe^{x} and e−xe^{-x} for x=0.5x = 0.5.

    e0.5≈1.648721e−0.5≈0.606531\begin{gathered} e^{0.5} \approx 1.648721 \\ e^{-0.5} \approx 0.606531 \end{gathered}
  3. Value of tanh

    Divide the difference of the exponentials by their sum.

    tanh⁡0.5=1.648721−0.6065311.648721+0.606531≈0.462117\tanh 0.5 = \frac{1.648721 - 0.606531}{1.648721 + 0.606531} \approx 0.462117
  4. Result

    So tanh⁡0.5≈0.462117\tanh 0.5 \approx 0.462117.

Worked examples