Simple ODE Solver


Here is a code to step forward a system of ODEs, such as the Lorenz equations. The use can easily configure their own set of ODEs with fairly simple edits of the code. Both Python and Matlab have built-in ODE solvers that will do more sophisticated things like adapt the timestep. The utility of the code below is that it is simple and the user can see exactly what is being done.

Sample PDF output. For more plots, click here

Download the code.

View the code.