Ron Mak @ Apropos Logic

ron@apropos-logic.com
Publications and books by Ronald Mak

Java Number Cruncher

Program 8-1

Solving Differential Equations Numerically

This applet demonstrates solving differential equations numerically with various algorithms.

To run the demo:

  1. Choose a differential equation. Its analytical solution is plotted in blue. The initial condition y(x0) = y0 is represented by a red dot at (x0, y0).
  2. Choose an algorithm to solve the equation numerically:
    • Euler's
    • Predictor-Corrector
    • Fourth-Order Runge-Kutta
  3. Repeately press the Step button (up to 10 times) to single-step the algorithm with an increasing number of intervals. Each approximate solution is plotted in red.
  4. Press the Run button to animate the algorithm.