Saturday, January 24, 2026
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

1 COMMENT

Most Popular

Dominic
32475 POSTS0 COMMENTS
Milvus
122 POSTS0 COMMENTS
Nango Kala
6847 POSTS0 COMMENTS
Nicole Veronica
11977 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12065 POSTS0 COMMENTS
Shaida Kate Naidoo
6986 POSTS0 COMMENTS
Ted Musemwa
7221 POSTS0 COMMENTS
Thapelo Manthata
6934 POSTS0 COMMENTS
Umr Jansen
6912 POSTS0 COMMENTS