Python | sympy.acos(x) method
Last Updated :
25 Jun, 2019
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.
from sympy import * x, y, z = symbols( 'x y z' )
gfg_exp = acos( 0 )
print (gfg_exp)
|
Output :
pi/2
Example #2 :
from sympy import * x, y, z = symbols( 'x y z' )
gfg_exp = acos(sqrt( 3 ) / 2 )
print (gfg_exp)
|
Output :
pi/6
Share your thoughts in the comments
Please Login to comment...