Python nonlinear systems of equations using fsolve

  Рет қаралды 13,307

ignite.byu.edu

ignite.byu.edu

Күн бұрын

Пікірлер: 17
@ziyuange1914
@ziyuange1914 4 жыл бұрын
You literally explain every step. A perfect teacher for me! Thank you very much.
@varaleo1985
@varaleo1985 4 жыл бұрын
Thank you, one of the best explanations I have found so far on KZbin.
@aditishahani5987
@aditishahani5987 3 жыл бұрын
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!
@benjaminasalgado2061
@benjaminasalgado2061 3 жыл бұрын
ME SALVASTE EL RAMO WEON TE AMO CON LA VIDAAAAAA
@16chechito
@16chechito 10 ай бұрын
Thank you for the explanation. It was very usefull for my college project.
@ryanthomas2374
@ryanthomas2374 Жыл бұрын
I like your format and your example videos thank you.
@deni9264
@deni9264 4 жыл бұрын
Thank you so much for this tutorial. Clear and concise. Can you please demonstrate solving a dependent system of non-linear equations with python?
@ivanuskov862
@ivanuskov862 3 жыл бұрын
Great video! Helped a lot, thank you!
@sdu28
@sdu28 4 жыл бұрын
At 9:25, why is the second equation defined as 'np.sin' instead of simply 'sin'?
@ignitebyuedu
@ignitebyuedu 4 жыл бұрын
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.
@sdu28
@sdu28 4 жыл бұрын
@@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
@ignitebyuedu
@ignitebyuedu 4 жыл бұрын
@@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.
@abenderbey
@abenderbey 5 жыл бұрын
Lot of thanks!
@musixbox7652
@musixbox7652 Жыл бұрын
can this problem be solved analytically?
@Dusadof
@Dusadof Жыл бұрын
great
@mihir9173
@mihir9173 4 жыл бұрын
What is the significance of the guess value?
@ignitebyuedu
@ignitebyuedu 4 жыл бұрын
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.
The basics of fsolve
12:49
Dr Gregory Reeves
Рет қаралды 20 М.
Newton's method for solving nonlinear systems of Algebraic equations
18:37
Solving fluid mechanics pump curve using Python
19:40
ignite.byu.edu
Рет қаралды 8 М.
NumPy Tutorial: For Physicists, Engineers, and Mathematicians
1:32:42
Mr. P Solver
Рет қаралды 169 М.
Solving Equations with MATLAB using fsolve
21:17
purdueMET
Рет қаралды 9 М.
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 1,1 МЛН
Symbolic Manipulation in Python
28:18
APMonitor.com
Рет қаралды 63 М.
How (and why) to raise e to the power of a matrix | DE6
27:07
3Blue1Brown
Рет қаралды 2,9 МЛН
Solving the Navier-Stokes equations in Python | CFD in Python | Lid-Driven Cavity
29:15
Machine Learning & Simulation
Рет қаралды 69 М.
Finding Zeros of Functions In Python (Bisection Method and Scipy)
15:26
Python integration using scipy quad function
9:12
ignite.byu.edu
Рет қаралды 13 М.
Root Finding in Python
18:00
HagesLab
Рет қаралды 12 М.