next up previous
Next: Local Truncation Error Up: Errors in Numerical Previous: Errors in Numerical

Sources of Error

There are two fundamental sources of error in solving an initial value problem numerically. Let us first assume that our computer is such that we can carry out all computations with complete accuracy; that is, we can retain an infinite number of decimal places. The difference between the solution of the initial value problem (2) and its numerical approximation is given by

 

and is known as the global truncation error. It is obtained by taking the max of all 's. It arises from two causes:

  1. At each step we use an approximate formula to determine (approximating the curve locally by the tangent).
  2. The input data at each step are only approximately correct since in general is not equal to .
If we assume that , then the only error in going one step is due to the use of an approximate formula. This error is know as the local truncation error . Note that this definition of local truncation error is different from that in Golub/Ortega's book. They implicitly divide the term that we derive by h.

The second fundamental source of error is that we carry out the computations in arithmetic with only a finite number of digits (like IEEE arithmetic). This leads to a round-off error defined by

 

where is the value actually computed from the given numerical method.

The absolute value of the total error in computing is given by

Making use of the triangle inequality, , we obtain

Thus the total error is bounded by the sum of the absolute values of the truncation and round-off errors. For the numerical procedures discussed in this course it is possible to obtain useful estimates of the truncation error. However, we limit our discussion primarily to the local truncation error, which is somewhat simpler. The round-off error is clearly more random in nature. It depends on the sequence in which the computations are carried out.



next up previous
Next: Local Truncation Error Up: Errors in Numerical Previous: Errors in Numerical



Dinesh Manocha
Sun Mar 15 12:31:03 EST 1998