Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inverse Cosine in Python

Apologies if this is straight forward, but I have not found any help in the python manual or google.

I am trying to find the inverse cosine for a value using python.

i.e. cos⁻¹(x)

Does anyone know how to do this?

Thanks

like image 464
Sheik Yerbouti Avatar asked Jul 19 '11 10:07

Sheik Yerbouti


People also ask

What is the inverse for cosine?

What is Arccosine? Inverse cosine is also known as arccosine. It is the inverse of cos function. Also, sometimes abbreviated as 'arccos'.

Is there an inverse function in Python?

invert() in Python. numpy. invert() function is used to Compute the bit-wise Inversion of an array element-wise.

How do you find arc cos in Python?

Python number method acos() returns the arc cosine of x, in radians.


1 Answers

We have the acos function, which returns the angle in radians.

>>> import math >>> math.acos(0) 1.5707963267948966 >>> _ * 2 - math.pi 0.0 
like image 135
Tugrul Ates Avatar answered Sep 17 '22 06:09

Tugrul Ates