ODE Solver

Runge-Kutta 4 and Euler on a differential equation, with a step-size comparison.

Math & convertMathDifferential Equations
ODE Solver screenshot

Variables t and the names declared on the left are in scope. Functions: sin cos tan asin acos atan sinh cosh tanh exp log ln log2 log10 sqrt abs floor ceil round min max pow atan2.

Order of accuracy check
Methody(t_end)vs finest

Halving the step should cut the error by 2 (Euler), 4 (RK2) or 16 (RK4). The final column is measured against RK4 at 16× the step count.

Solution curve
State vs time
Full report

More tools