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
FreshandFit
1 hour agoAfter Hours w/ Girls
680 -
LIVE
Badlands Media
8 hours agoDevolution Power Hour Ep. 425
6,819 watching -
Inverted World Live
7 hours agoHARARI WARNS: AI is a Knife That Can CHOOSE To MURDER | Ep. 164
31.7K6 -
DVR
Man in America
6 hours agoCATASTROPHIC ICE STORM: What You Must Do in the Next 48 Hours | Emergency Broadcast
27.7K7 -
TimcastIRL
3 hours agoHE'S DONE IT | Timcast IRL #1432
207K52 -
LIVE
Drew Hernandez
21 hours agoTRUMP SAYS THE GOOD ILLEGALS CAN STAY & PAM BONDI REVEALS HER TRUE MASTERS?
856 watching -
LIVE
ThatStarWarsGirl
3 hours agoTSWG LIVE: The Witch Is GONE! Kathleen Kennedy FINALLY Leaving Lucasfilm
445 watching -
LIVE
Adam Does Movies
1 hour agoTalking Movies + Ask Me Anything - LIVE
61 watching -
1:08:32
You're The Voice Podcast
3 days agoThe UN's Darkest Secret (El Salvador Exposed It) - Bob McDonell | Ep. 118
6.23K -
2:00:49
TheSaltyCracker
3 hours agoCuomo Crash Out ReeEStream 01-21-26
58.9K148