1 | For simplicity, we assume just one first-order equation, where f is the function on right hand side which depends on X and t |
2 | We can always solve this by setting up a grid of equidistant points with grid size h=(B-A)/n where n is an integer. |
3 | Starting from the initial value, we calculate positions one step at a time |