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
2 hours agoAfter Hours w/ Girls
14,678 watching -
2:04:47
Inverted World Live
4 hours agoDoomsday Clouds and Mega Tsunamis
78.8K2 -
LIVE
Badlands Media
10 hours agoDevolution Power Hour Ep. 372
8,924 watching -
DVR
RalliedLIVE
10 hours ago $2.31 earned10 WINS WITH THE SHOTTY BOYS
72.6K2 -
8:14
MattMorseTV
9 hours ago $1.10 earnedBrazil just FOUND OUT.
9.59K16 -
SpartakusLIVE
6 hours agoWZ Solos || GCX St. Jude Charity Marathon @ 8PM EST
17.5K -
4:27:47
elwolfpr
4 hours agoThe Reaper Returns: I’m Back, Baby!
7.59K1 -
3:02:07
TinyPandaface
3 hours agoYour FACE is a Gaming Channel! | Birth
9.02K -
1:49:18
FreshandFit
6 hours agoLauren Southern Accuses Tate Of Abuse!
41.2K63 -
LIVE
Toolman Tim
2 hours agoDOOM: Dark Ages - First Runthrough | Gaming Thinktank
191 watching