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
-
33:02
DeVory Darkins
4 hours ago $8.00 earnedComey INDICTED by grand jury in shocking announcement by DOJ as Trump claims MAJOR VICTORY
15.2K67 -
2:06:23
Inverted World Live
5 hours agoEpstein Worked for CIA According to OMG Reporting | Ep. 114
118K28 -
3:14:39
TimcastIRL
6 hours agoTrump DOJ Indicts James Comey, The ARRESTS Have BEGUN | Timcast IRL
296K307 -
LIVE
SpartakusLIVE
7 hours ago#1 Hulking MASS squashes NOOBS for viewers’ DELIGHT
519 watching -
1:32:21
The Charlie Kirk Show
6 hours agoTHOUGHTCRIME Ep. 98 — The Comey Indictment? Antifa Agenda? Charlie and the Cubs?
102K54 -
1:04:56
Sarah Westall
6 hours agoPolitical Assassinations, Targeted Hit Lists - Manufactured Chaos w/ Harley Schlanger
64.8K12 -
1:11:31
Flyover Conservatives
12 hours agoThe “J Walker” Secret: One Daily Habit That Shifts an Entire City - Tammy Hotsenpiller | FOC Show
52.2K3 -
2:12:02
Mally_Mouse
9 hours ago🎮Throwback Thursday! Let's Play: Wii Sports Resort!
45K2 -
LIVE
Akademiks
5 hours agoATLANTA IS BACK. Young Thug and YFN best buddies now. ATL backs Thug officially!
1,177 watching -
5:40:35
Reolock
7 hours agoWoW Classic Hardcore | 3 LEVELS REMAIN
43.1K3