A numerical error is either of two kinds of error in a calculation. The first (a rounding error) is caused by the finite precision of computations involving floating-point values. Increasing the number of digits allowed in a representation reduces the magnitude of possible roundoff errors, but any representation limited to finitely many digits will still cause some degree of roundoff error for uncountably many real numbers.
The second type of error (sometimes called the truncation error) is the difference between the exact mathematical solution and the approximate solution. Suppose, that we have defined an equidistant mesh and let us consider first a local error which arises from only one step of some numerical scheme.
A difference
(1.16) |
One says, that a numerical scheme possess a consistency order
, if
(1.17)
where
is a constant.
As mentioned above, the local error gives information about the accuracy of the numerial scheme, i.e., about the error in one its step. At the end of calculation one can calculate an accumulated or a global discretization error in tghe point :
(1.18) |
The value of the global error gives information about convergence of the approximation to the exact solution of the problem if the spacing value tends to zero, i.e.,
A numerical scheme is said to be convergent, if for the global error
one can write
for
(1.19)
The scheme posseses a convergence order
, if
(1.20)
where
is a constant.
Notice: At a first glance the global error tends to zero with the decreasing of , so the mesh should be refined. However, decreasing of leads to the increasing of the rounding error. Another point to emphasize is that decreasing of can lead to instability of the numerical scheme in question. The notation of stability will be the topic of the next section.
Gurevich_Svetlana 2008-11-12