Finite difference for BVP in Python

Hey poeops. I am trying to learn some nunerical math using the book Finite Difference Methods for Ordinary and Partial Differential Equations: Steady State and Time Dependent Problems by Randall J. LeVeque.

This post is regarding chapter 2 in the book. I want to run through an example in the book which is discussed here:


At the end of the first answer by VoB there is Octave code. Unfortunately I don't have that program. does anyone by any chance similar code in Python? Or can transle that in Python and numpy?

I know I might appear extremely lazy by not doing it myself but this will take me a whole day( I am not the best programmer), which is too long for "just" a demonstration of example
 
Top