Premium Only Content

Nonlinear Differential Equations Using Finite Differences: Can we Use Sparse Matrices?
NOTE: WHEN RECORDING THIS, i ACCIDENTALLY FORGOT TO USE THE SPARSE IDENTITY MATRIX IN MATLAB. THE GITHUB CODE HAS BEEN UPDATED AND IS CORRECT. THE 10000-DIMENSIONAL SYSTEM IS NOW SOLVED IN 0.9 SECONDS INSTEAD OF TWO MINUTES!
In answer to a question, we look at using sparse matrices in the solution of boundary value problems. For nonlinear problems, things become more complicated, but we can still use fsolve to solve the underlying system of equations. The issue with Python is the solver cannot handle sparse Jacobian matrices so this limits the utility of this method to small problems. For solvers that can handle sparse Jaboians such as MATLAB’s, we can still get good performance despite having to use a nonlinear solver.
Wikipedia Article on the Jacobian Matrix: https://en.wikipedia.org/wiki/Jacobian_matrix_and_determinant
Github Python Notebook: https://github.com/kpmooney/numerical_methods_youtube/blob/master/bvp/Nonlinear%20BVP.ipynb
Github MATLAB Code: https://github.com/kpmooney/numerical_methods_youtube/blob/master/bvp/Nonlinear.m
Tip Jar: https://paypal.me/kpmooney
-
LIVE
FreshandFit
9 hours agoChat Makes Pothead RAGE QUIT!!!
36,670 watching -
1:32:34
Badlands Media
11 hours agoBaseless Conspiracies Ep. 150: 9/11 Mysteries, Remote Pilots, and Hidden Agendas
76.9K16 -
LIVE
Akademiks
3 hours agoWHERE IS WHAM????? Thug we Forgive u dawg.. Ralo vs Boosie. Charlie Kirk fallout. Cardi B album?
2,783 watching -
2:05:53
Inverted World Live
4 hours agoDeath Cult Terror Cells, NASA Bans Chinese Nationals | Ep. 108
47.6K6 -
2:43:57
TimcastIRL
5 hours agoVP Says No Unity With Democrats Celebrating Charlie Kirk Assassination, Left Confirmed | Timcast IRL
248K148 -
13:45
The Charlie Kirk Show
4 hours agoTPUSA AT ASU CANDLELIGHT VIGIL
206K40 -
55:10
Katie Miller Pod
4 hours ago $8.05 earnedEpisode 6 - Attorney General Pam Bondi | The Katie Miller Podcast
62.9K21 -
1:46:41
Man in America
9 hours agoLIVE: Assassin Story DOESN'T ADD UP! What Are They HIDING From Us?? | LET'S TALK
46.3K50 -
2:24:17
Barry Cunningham
5 hours agoFOR PRESIDENT TRUMP WILL TAKE NO PRISONERS AND THE LIBS SHOULD EXPECT NO MERCY!
85.5K61 -
1:08:41
Savanah Hernandez
6 hours agoCharlie Kirk Was Our Bridge And The Left Burned It
42.3K42