## What is the ACOT function in Excel?

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

It returns the arccotangent of a number, in radians in the range 0 to Pi. The domain of arccosine is the interval [−R,+R].

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

## How to use **ACOT **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 the** ACOT **function.

6. Then select **ok**.

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

8. In the Number section you can enter the cotangent of the angle you want.

9. You will see the result in the formula result section ( ** ACOT** (0)=1.57).

## Examples of **ACOT **function in excel

**Example 1:**

**How to use ACOT function in excel**

You can see examples of ACOT function below:

**acot**(-1) ----->>>>answer is 2.356
**acot**(-0.5) ----->>>>answer is 2.034
**acot**(0) ----->>>>answer is 1.570
**acot**(0.5) ----->>>>answer is 1.107
**acot**(1) ----->>>>answer is 0.785

math.acot(a)

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

we can use Python code for ACOT function in excel:

```
import math
import numpy as np
import matplotlib.pyplot as plt
x =np.linspace(0,3.14,100)
lenx=len(x)
y=[]
for i in range(lenx):
y.append(math.acot(x[i]))
i +=1
plt.plot(x,y)
plt.show()
```

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

It returns the arccotangent of a number, in radians in the range 0 to Pi. The domain of arccosine is the interval [−R,+R].

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

It returns a number.

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

This function has just **1** Argument.

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

In the Number section you can enter the cotangent of the angle you want.

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

```
ACOT(number) = number
```

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

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