Euler's Method

Description

Given an initial value problem y ' = f(x,y); y(x0) = y0 and a step size h, Euler's method approximates the derivative of the solution of the initial value problem at x by y '(x) = ( y(x+h) - y(x) ) / h. The approximation yn for y(x0+nh) is then given recursively by
yn+1 = yn + h f(xn,yn)
for n = 0, 1, ... .

Locally Euler's method is a second order method and therefore globally a first order method.

Euler's method is a stable and convergent method with region of absolute stability

| 1 + µh | < 1
in the complex µh plane.

As a rule, Euler's method is only useful for a few steps and small step sizes, however Euler's method together with Richardson extrapolation may be used to increase the order and accuracy.

Function List

C Source