Thursday, September 4, 2025
HomeLanguagesPython | sympy.sqrt() method

Python | sympy.sqrt() method

With the help of sympy.sqrt() method, we can find the square root of any number by using sympy.sqrt() method.

Syntax : sympy.sqrt(number)
Return : Return square root of any number.

Example #1 :
In this example we can see that by using sympy.sqrt() method, we can get the square root of any number.




# import sympy
import sympy
  
# Use sympy.sqrt() method
num = sympy.sqrt(10)
  
print(num)


Output :

sqrt(10)

Example #2 :




# import sympy
import sympy
  
# Use sympy.sqrt() method
num = sympy.sqrt(36)
  
print(num)


Output :

6

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

Most Popular

Dominic
32261 POSTS0 COMMENTS
Milvus
81 POSTS0 COMMENTS
Nango Kala
6626 POSTS0 COMMENTS
Nicole Veronica
11795 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11855 POSTS0 COMMENTS
Shaida Kate Naidoo
6747 POSTS0 COMMENTS
Ted Musemwa
7023 POSTS0 COMMENTS
Thapelo Manthata
6695 POSTS0 COMMENTS
Umr Jansen
6714 POSTS0 COMMENTS