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
-
1:25:01
Coin Stories with Natalie Brunell
1 day agoThe Coming Currency War: Gold, Dollar, and Bitcoin with Matthew Pines
3411 -
LIVE
GritsGG
18 hours ago36 Hour Marathon Stream! Most Wins in WORLD! 3704+!
4,072 watching -
15:10
Dr Disrespect
17 hours agoI FINALLY Beat Baby Steps
6.82K11 -
8:38
MattMorseTV
12 hours ago $4.49 earnedThis is CATASTROPHIC for the Dems.
11.2K10 -
19:54
Forrest Galante
2 days agoPrivate Tour Of America's Best Marine Animal Facility
69.7K9 -
2:59:11
Side Scrollers Podcast
18 hours agoDEI’s FINAL BOSS EXPOSED + Book Publisher REVERSES Cancel Attempt + More | Side Scrollers
49.8K18 -
23:00
The Pascal Show
9 hours ago $0.93 earnedCANDACE EXPOSES TEXTS! Candace Owens Shows Proof Charlie Kirk Was B*llied By Donors Before His Death
4.08K -
1:31:37
The HotSeat
13 hours agoBondi On The Hill + Equitable Grading? We Are Failing Our KIDS!
26.2K5 -
6:05
Spooky Grandpa's Scary Stories
1 month agoTHE HARVEST MAN (Halloween, Horror, Folklore, Supernatural, Paranormal)
5.5K7 -
LIVE
Lofi Girl
2 years agoSynthwave Radio 🌌 - beats to chill/game to
232 watching