Python code for ACOT function in excel

How to plot Y=ACOT(X) with python code 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()

 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].

ACOT arguments

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

Leave a Reply

Your email address will not be published. Required fields are marked *