next up previous
Next: Adams-Bashforth Up: Assignment 4: Initial-value problems Previous: Taylor methods

Runge-Kutta

1.
Starting again from the clean worksheet, implement the 4th Order Runge-Kutta method to solve Exercise 3b on page 188, using a step size of 0.1 (n:=20).

2.
Compare the errors with the two other methods (Euler and 2nd order Taylor). Make sure you are comparing errors with the same number of steps.



Allen B. Downey
1998-10-07