Python | sympy.asec () method

Python Methods and Functions

Using the sympy.asec() method we can find the sec inverse value using the sympy.asec () function.

Syntax: sympy.asec ()
Return: Return value of sec inverse.

Example # 1:
In this example we can see that with sympy.asec () we can find the value of sec inverse .

# import sympy

from sympy import *

  
# Use the sympy.asec () method

gfg = simplify (asec ( 1 ))

  

print (gfg)

Output:

0

Example # 2:

Output:

oo





Get Solution for free from DataCamp guru

# import sympy

from sympy import *

 
# Use the sympy.asec () method

gfg = simplify ( 0 ))

 

print (gfg)