Differential Equation Solver (Euler / RK4)
Solve dy/dx = f(x, y) from (x₀, y₀) with Euler and RK4, and compare the curves.
y(x_f) ≈
—
End point x_f = x₀+n·h—
Euler y(x_f)—
RK4 y(x_f)—
|RK4 − Euler|—
Enter dy/dx = f(x, y) using x and y, the initial point (x₀, y₀), step size h and steps n.