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⁡2\tanh 2

tanh⁡2≈0.964028\displaystyle \tanh 2 \approx 0.964028

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=2x = 2
  2. The two exponentials

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

    e2≈7.389056e−2≈0.135335\begin{gathered} e^{2} \approx 7.389056 \\ e^{-2} \approx 0.135335 \end{gathered}
  3. Value of tanh

    Divide the difference of the exponentials by their sum.

    tanh⁡2=7.389056−0.1353357.389056+0.135335≈0.964028\tanh 2 = \frac{7.389056 - 0.135335}{7.389056 + 0.135335} \approx 0.964028
  4. Result

    So tanh⁡2≈0.964028\tanh 2 \approx 0.964028.

Worked examples