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
-
42:24
MYLUNCHBREAK CHANNEL PAGE
11 hours agoA Century Gone
40.1K24 -
38:22
Stephen Gardner
4 hours ago🔥HOLD ON! The RUMORS about Kamala are TRUE...
86.6K186 -
1:22:44
Michael Franzese
23 hours agoWill Trump’s Win Finally Convince Democrats to Stop The Woke Nonsense??
113K93 -
LIVE
MDGgamin
7 hours ago🔴LIVE- Rumble Gaming To The MOON - Variety of Games & Chatting - #RumbleTakeover
683 watching -
27:24
Mr. Build It
5 days agoDECK DISASTER! How We Fixed a Botched Build
44K11 -
26:58
barstoolsports
8 hours agoZach Bryan Blocks All of Barstool | Stool Scenes
54.4K8 -
1:06:44
Talk Nerdy 2 Us
1 day ago🔥 Hackers vs. The World: From Amazon breaches to FBI-confirmed Chinese telecom spying
63K15 -
1:24:20
Vigilant News Network
22 hours agoJoe Rogan Drops Shocking Election Claim | The Daily Dose
127K113 -
1:10:18
FamilyFriendlyGaming
21 hours ago $17.84 earnedCat Quest III Episode 2
112K -
20:07
DeVory Darkins
1 day ago $19.69 earned"They Talking About Finance!" The View FRUSTRATED by NYC Mayor TRUTH BOMB
81.1K87