Thursday, January 22, 2026
HomeLanguagesPython | sympy.asec() method

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

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32475 POSTS0 COMMENTS
Milvus
119 POSTS0 COMMENTS
Nango Kala
6847 POSTS0 COMMENTS
Nicole Veronica
11977 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12064 POSTS0 COMMENTS
Shaida Kate Naidoo
6986 POSTS0 COMMENTS
Ted Musemwa
7220 POSTS0 COMMENTS
Thapelo Manthata
6933 POSTS0 COMMENTS
Umr Jansen
6912 POSTS0 COMMENTS