Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Python | sympy.sqrt() method

  • Last Updated : 12 Jun, 2019

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.

 Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.  

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :