Python, solving systems of nonlinear equations using fsolve. The corresponding notes are here: nbviewer.jupyter.org/url/igni...
Пікірлер: 17
@ziyuange19143 жыл бұрын
You literally explain every step. A perfect teacher for me! Thank you very much.
@16chechito4 ай бұрын
Thank you for the explanation. It was very usefull for my college project.
@benjaminasalgado20613 жыл бұрын
ME SALVASTE EL RAMO WEON TE AMO CON LA VIDAAAAAA
@aditishahani59873 жыл бұрын
Super helpful!! Especially for people like myself who haven't had any formal intro to python but need it for some work! Thanks a lot!
@varaleo19853 жыл бұрын
Thank you, one of the best explanations I have found so far on KZfaq.
@ivanuskov8623 жыл бұрын
Great video! Helped a lot, thank you!
@deni92643 жыл бұрын
Thank you so much for this tutorial. Clear and concise. Can you please demonstrate solving a dependent system of non-linear equations with python?
@ryanthomas2374 Жыл бұрын
I like your format and your example videos thank you.
@abenderbey4 жыл бұрын
Lot of thanks!
@Dusadof Жыл бұрын
great
@mihir91733 жыл бұрын
What is the significance of the guess value?
@ignitebyuedu3 жыл бұрын
Nonlinear equation solvers are normally iterative. They require a guess value as a starting point for the iteration. Each iteration ideally improves the solution from the initial value.
@musixbox765210 ай бұрын
can this problem be solved analytically?
@sdu283 жыл бұрын
At 9:25, why is the second equation defined as 'np.sin' instead of simply 'sin'?
@ignitebyuedu3 жыл бұрын
Python doesn't come with sin as a function, you need to get it from a library. In the code here, I am using numpy. The line "import numpy as np" then provides access to the numpy functions: np.sin, etc. If I would have done "from numpy import *" or "from numpy import sin" then we could just write sin(x) instead of np.sin(x), but what is done in the code is generally the preferred approach. You can also get sin from the math library: from math import sin.
@sdu283 жыл бұрын
@@ignitebyuedu thanks, I understand your explanation but my question is - As I understand, using ‘np’ before sine means we’re asking python to calculate sine of the elements of a numpy array (sine(array elements)) whereas, as far as this particular problem is concerned, we just need sine(of a number), then isn’t math.sin preferable ? Another question - if we take the equations as user inputs on a command terminal , is the user expected to use math or numpy while entering functions like sine, cosine, exponential etc.? Thanks
@ignitebyuedu3 жыл бұрын
@@sdu28 np.sin can take a single number or an array. For numerical work, I always us numpy and I cannot remember the last time I bothered with "import math," but it's really up to you.