Python | sympy.acsc () method

Python Methods and Functions

Using the sympy.acsc() method, we can find the cosine value using the sympy.acsc () function.

Syntax: sympy.acsc ()
Return: Return value of cosine inverse.

Example # 1:
In this example we can see that with sympy.acsc () we can find the inverse cosine .

# import sympy

from sympy import *

  
# Use the sympy.acsc () method

gfg = simplify (acsc ( 0.5 ))

 

print (gfg)

Output:

1.5707963267949 - 1.31695789692482 * I

Example # 2:

# import sympy

from sympy import *

 
# Use the sympy.acsc () method

gfg = simplify (acsc ( 0.8 ))

 

print (gfg)

Output:

1.5707963267949 - 0.693147180559945 * I





Get Solution for free from DataCamp guru