## What is TANH function in Excel?

The **TANH **function is one of the math functions of Excel.

It Returns **the hyperbolic tangent** of a number.

We can find this function in **Math&trig** category of insert function Tab.

## How to use TANH function in excel

- Click on
**an empty cell**(like F5 )

2. Click on **fx icon** (or press** shift+F3**)

3. In the **insert function tab** you will see all functions

4. Select **math and trig** category

5. Select **TANH **function

6. Then select **ok**

7. In the function arguments Tab you will see ** TANH **function

8. Number section is any **real number**

9. You will see **results **in the formula result ( **TANH **(0)=0)

## Examples of **TANH** function in Excel

**Example 1:**

**How to use TANH function in excel**

You can see examples of TANH function below:

**tanh**(A2) ----->>>>answer is -0.99
**tanh**(A3) ----->>>>answer is -1.76
**tanh**(A4) ----->>>>answer is 0
**tanh**(A5) ----->>>>answer is 0.76
**tanh**(A6) ----->>>>answer is 0.99

## Python code for TANH function

np.tanh(x)

### How to plot Y=**TANH**(X) with python code in excel

**TANH**

```
import numpy as np
from matplotlib import pyplot as plt
def f(x):
return np.tanh(x)
x = np.linspace(-10, 10, 100)
plt.plot(x, f(x))
plt.show()
```

## What is the purpose of **TANH** function?

**TANH**

It Returns **the hyperbolic tangent** of a number.

## What is the Return value of **TANH** function?

**TANH**

It returns a number.

## How many arguments does **TANH** function have?

**TANH**

This function has just **1** Argument.

The **argument **of TANH function is **number**.

Number section is any **real number**

The argument of TANH function is **required **and not optional.

```
TANH(number) = number
```

## Which version of excel supports **TANH** function?

**TANH**

This function is available for all excel **versions **(2003-2019)

## Errors in **TANH** function

**TANH**