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
-
20:28
Nikko Ortiz
16 hours agoShooting Extremely Expensive Guns
45K2 -
8:32
MattMorseTV
13 hours ago $7.41 earnedSchumer just TORCHED $90,000,000,000.
9.17K24 -
51:25
The Connect: With Johnny Mitchell
1 day ago $44.42 earnedInside The REAL Narco State: The Colombian Drug Cartels DOMINATING The Global Cocaine Trade
86.7K34 -
12:09
GritsGG
13 hours agoTook Down a Cheater on Rebirth To Achieve Victory!
3.63K -
14:12
BlabberingCollector
16 hours agoHBO Show Update, Audible Full Cast Ensemble Updates, Wizarding World Quick Hits!
6.25K -
LIVE
Lofi Girl
2 years agoSynthwave Radio 🌌 - beats to chill/game to
160 watching -
31:30
The Why Files
7 days agoCodex Gigas | The Devil's Bible and the Nazi Hole to Hell
169K77 -
1:05:26
Man in America
17 hours ago“Poseidon” Doomsday Sub, Microplastics & The War on Testosterone w/ Kim Bright
92.8K7 -
1:05:57
Sarah Westall
9 hours agoThe Story the DOJ, the FBI and the Media doesn’t want you to Know w/ Christina Bobb
42.5K10 -
2:16:01
IsaiahLCarter
1 day ago $14.85 earnedGraham Linehan: A Mess of Courage and Conviction || APOSTATE RADIO 034
31.2K