SymPy is a Python package that solves and manipulates symbolic expressions. Scipy.optimize.fsolve is compared to SymPy along with other example problems.
I wish I can thank you in person. Your videos are soooo much helpful. May I ask a quick question. If the equation 1 and 2 are a bit complicated and we want to solve for x and y, How can we mention that we do not want any negative values as solution? Thanks!!!!!!!!!!!!
The best video, i have ever meet!❤ Very thank
I wish I can thank you in person. Your videos are soooo much helpful.
May I ask a quick question. If the equation 1 and 2 are a bit complicated and we want to solve for x and y, How can we mention that we do not want any negative values as solution?
Thanks!!!!!!!!!!!!
You can add lower bounds of zero to x and y. See apmonitor.com/che263/index.php/Main/PythonOptimization
In Python can you define equations like you would in Matlab?
i.e to do something like
MyEqn = 0.1 * x^5 - x^2 == 10 sin (x)
solve (MyEqn, x)
Yes, symbolic solutions are with Sympy. Check out lesson 10 here: apmonitor.github.io/data_science/
Sir ur videos are awesome....can you suggest me a book on python...
I don't have a book but here is a free online course: apmonitor.com/che263 for engineers
Here's a free online book:
pythonnumericalmethods.berkeley.edu/notebooks/Index.html
@@AJ-et3vf thanks
Can we make Binomial equation in symPy?
Yes, please see apmonitor.com/pds/notebooks/10_solve_equations.html
how can i solve transcendental equations with numpy?
Here are some suggestions: stackoverflow.com/questions/43047463/find-root-of-a-transcendental-equation-with-python also take a look at Python Gekko