Exercise ODEs
- Implement a Runge-Kutta "stepper"-routine
rkstep
wich advances
the solution by a step h
and estimates the error, e.g.:
- Implement an adaptive-step-size Runge-Kutta "driver"-routine wchich
advances the solution from a to b (by calling
rkstep
with appropriate step-sizes) keeping the specified relative, eps
,
and absolute, acc
, precision:
- Implement a Prediction-Correction method with adaptive
step-size for a single first order differential equation.
Here is a JavaScript
example.
- Your driver must remember the points (x,y) it calculated along the
way.