21. 4 ways to solve systems of nonlinear equations in python
Ойындар
Non-linear equations are much nastier to solve than linear equations. Fortunately, we have lots of options in python. This video shows 4 approaches: graphical using matplotlib, numerically using scipy's fsolve optimizer, numerically using the gekko optimizer, and symbolically using sympy.
00:00 graphical solution w/ matplotlib
4:00 scipy fsolve
7:55 gekko solver
8:55 sympy symbolic solver
Пікірлер: 21
awesome! Thanks for the tutorial, really well done:)
Great video for beginners. Thanks!
thank you so much finally i got it what i was searching from 3months
Great video, succinct and helpful
Hello Taylor! I really like the video, I learned alot but do you know what I need so that python writes the square roots instead of writing sqrt? Yours seems to be doing it well. Is it the different IDE's or a math library? Have a wonderful weekend.
Thank you, it was very helpful
Thanks!
Can you put videos on how to get the exact calculations values using sympy? Because using this we are getting sqrt value.. I need not in sqrt form
Hey what happens when two equation or a set of equations do not have a solution? what does sym.solve(##) give? will it be a empty matrix/vector?
Nice! But I still have one problem, in the second method, imagine that x cannot be negative how can we put this in phyton?
Nice tutorial !!
@TaylorSparks
3 жыл бұрын
Thanks!!
I am issues solving one long complicated and exponential two-variable equation with any of these methods in python. Keeps giving me errors
awesome
I have two non linear equations to solve for a huge dataset ( 700000 set of equations to solve). I tried the nsolve function but the symbolic calculation is too slow. Do you have an idea which solver to use ?
how did you do #.%%? how to press that kind of middle multiplication dot
@varunmehrotra1053
3 жыл бұрын
no need for the multiplication dot.... Its a way of showing blank space in spyder(i think in earlier versions) just use #%% and it will create a new tab
What is that IDE you are using?
@TaylorSparks
Жыл бұрын
I like Spyder!
dude you do not need to display yourself
@TaylorSparks
Жыл бұрын
🤷♂️a little humanity doesn't hurt