Thursday, July 4, 2024
HomeLanguagesPythonPython | sympy.asin() method

Python | sympy.asin() method

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

Syntax : sympy.asin(x)
Return : Return the value of inverse sine theta.

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




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


Output :

pi/2

Example #2 :




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


Output :

0.523598775598299

Ted Musemwa
As a software developer I’m interested in the intersection of computational thinking and design thinking when solving human problems. As a professional I am guided by the principles of experiential learning; experience, reflect, conceptualise and experiment.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments