ODE solvers: Euler vs RK4 vs adaptive RK45
What you are seeing: all three methods integrate from the same initial condition. Euler's explicit step pumps energy upward without bound; RK4 stays close to the true orbit at fourth-order accuracy; adaptive RK45 chooses its own step size from local error estimates. The phase-space plot at right shows each trajectory in .
Δt0.05
ω0.50
E drift:0%
0%WHAT TO TRY
- Vary each control and watch the rail readouts respond.
- Compare the diagnostic plot against the live scene.