Python | sympy.solve() method
With the help of
sympy.solve(expression) method, we can solve the mathematical equations easily and it will return the roots of the equation that is provided as parameter using
Return : Return the roots of the equation.
Example #1 :
In this example we can see that by using
sympy.solve() method, we can solve the mathematical expressions and this will return the roots of that equation.
Before Integration : x**2 – 4
After Integration : [-2, 2]
Example #2 :
Before Integration : x**2 + 36
After Integration : [-6*I, 6*I]
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