Python | sympy.asec() method

With the help of sympy.asec() method, we are able to find the value of sec inverse using sympy.asec() function.
Syntax :
sympy.asec()
Return : Return value of sec inverse.
Example #1 :
In this example we can see that by using sympy.asec() method, we can find the value of sec inverse.
# import sympy from sympy import *Â Â # Use sympy.asec() method gfg = simplify(asec(1)) Â Â print(gfg) |
Output :
0
Example #2 :
# import sympy from sympy import *Â Â # Use sympy.asec() method gfg = simplify(0)) Â Â Â Â print(gfg) |
Output :
oo



