ODEs
Euler's Method
Solve a first-order ODE numerically: advance y one step at a time using the slope at the current point. Example: y'=x+y, y(0)=1, h=1/2; two steps give y(1)≈5/2 versus the true value 2e−2≈3.44.
The local error is O(h²); the global error is O(h).
eulers-method
Euler's method advances the solution by one step h using the slope at the current point: y_{n+1} = y_n + h·f(x_n, y_n)