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
-
UPCOMING
Russell Brand
23 minutes agoBREAK BREAD EP. 9 - BRANDON LAKE
-
LIVE
Matt Kohrs
10 hours agoLive Trading $1M, The Bitcoin Pump & New Squeeze Alert || The MK Show
1,441 watching -
LIVE
BonginoReport
1 hour agoAfter Weeks of Cheering on Gun Violence, Left Calls for Gun Control (Ep.106) - 12/17/2024
10,295 watching -
LIVE
Wendy Bell Radio
4 hours agoThe Swamp's Chickens Come Home to Roost
9,490 watching -
1:18:54
Game On!
8 hours ago $1.64 earnedVikings and Falcons DOMINATE on Monday Night Football!
16.2K1 -
LIVE
The Sufari Hub
6 hours agoHUGE 5 DAY GAMING STREAM | Marvel Rivals & Fortnite and MORE
274 watching -
8:51
Guns & Gadgets 2nd Amendment News
1 day agoDrones Putting National Security At Risk?!
26K20 -
14:35
Josh Pate's College Football Show
22 hours ago $2.52 earnedFULL CFP Bracket Predictions and National Title Pick
12.9K2 -
1:08:22
MTNTOUGH Fitness Lab
23 hours agoWyatt Ewing: Inside Ice Barrel's CEO's New Innovative Cold Therapy Solution
9.04K -
19:42
NC Dirt Hunter
1 day agoWhere the Union shells landed. Metal Detecting a Civil War Battle
5.45K4