Friday, September 5, 2025
HomeLanguagesPython | sympy.acos(x) method

Python | sympy.acos(x) method

With the help of sympy.acos(x) method, we are able to find the inverse of cosine theta.

Syntax : sympy.acos(x)
Return : Return the value of inverse cosine theta.

Example #1 :
In the given example, we can see that by using sympy.acos(x) method, we can find the inverse of a cosine theta.




# import sympy
from sympy import * x, y, z = symbols('x y z')
   
# Using sympy.acos() method
gfg_exp = acos(0)
   
print(gfg_exp)


Output :

pi/2

Example #2 :




# import sympy
from sympy import * x, y, z = symbols('x y z')
   
# Using sympy.acos() method
gfg_exp = acos(sqrt(3)/2)
   
print(gfg_exp)


Output :

pi/6

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32264 POSTS0 COMMENTS
Milvus
81 POSTS0 COMMENTS
Nango Kala
6634 POSTS0 COMMENTS
Nicole Veronica
11801 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11863 POSTS0 COMMENTS
Shaida Kate Naidoo
6752 POSTS0 COMMENTS
Ted Musemwa
7025 POSTS0 COMMENTS
Thapelo Manthata
6701 POSTS0 COMMENTS
Umr Jansen
6718 POSTS0 COMMENTS