Python nonlinear systems of equations using fsolve

  Рет қаралды 12,856

ignite.byu.edu

ignite.byu.edu

4 жыл бұрын

Python, solving systems of nonlinear equations using fsolve. The corresponding notes are here: nbviewer.jupyter.org/url/igni...

Пікірлер: 17
@ziyuange1914
@ziyuange1914 3 жыл бұрын
You literally explain every step. A perfect teacher for me! Thank you very much.
@16chechito
@16chechito 4 ай бұрын
Thank you for the explanation. It was very usefull for my college project.
@benjaminasalgado2061
@benjaminasalgado2061 3 жыл бұрын
ME SALVASTE EL RAMO WEON TE AMO CON LA VIDAAAAAA
@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!
@varaleo1985
@varaleo1985 3 жыл бұрын
Thank you, one of the best explanations I have found so far on KZfaq.
@ivanuskov862
@ivanuskov862 3 жыл бұрын
Great video! Helped a lot, thank you!
@deni9264
@deni9264 3 жыл бұрын
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
@ryanthomas2374 Жыл бұрын
I like your format and your example videos thank you.
@abenderbey
@abenderbey 4 жыл бұрын
Lot of thanks!
@Dusadof
@Dusadof Жыл бұрын
great
@mihir9173
@mihir9173 3 жыл бұрын
What is the significance of the guess value?
@ignitebyuedu
@ignitebyuedu 3 жыл бұрын
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.
@musixbox7652
@musixbox7652 10 ай бұрын
can this problem be solved analytically?
@sdu28
@sdu28 3 жыл бұрын
At 9:25, why is the second equation defined as 'np.sin' instead of simply 'sin'?
@ignitebyuedu
@ignitebyuedu 3 жыл бұрын
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 3 жыл бұрын
@@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 3 жыл бұрын
@@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.
Solving ODEs using Python Scipy
17:33
ignite.byu.edu
Рет қаралды 7 М.
Python integration using scipy quad function
9:12
ignite.byu.edu
Рет қаралды 12 М.
Дибала против вратаря Легенды
00:33
Mr. Oleynik
Рет қаралды 6 МЛН
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,7 МЛН
100❤️
00:19
MY💝No War🤝
Рет қаралды 18 МЛН
Solving Equations with MATLAB using fsolve
21:17
purdueMET
Рет қаралды 7 М.
Solving fluid mechanics pump curve using Python
19:40
ignite.byu.edu
Рет қаралды 8 М.
21. 4 ways to solve systems of nonlinear equations in python
11:38
Taylor Sparks
Рет қаралды 19 М.
Root Finding in Python
18:00
HagesLab
Рет қаралды 12 М.
Finding Zeros of Functions In Python (Bisection Method and Scipy)
15:26
Newton's method for solving nonlinear systems of Algebraic equations
18:37
SciPy Beginner's Guide for Optimization
11:03
APMonitor.com
Рет қаралды 293 М.
Python Symbolic and Numeric Solutions
16:15
APMonitor.com
Рет қаралды 16 М.
Python's contextlib is a HIDDEN GEM
14:55
Carberra
Рет қаралды 10 М.
Дибала против вратаря Легенды
00:33
Mr. Oleynik
Рет қаралды 6 МЛН