The following is an extract from
Seven Deadly Sins of Numerical Computation, by Brian J. McCartin
Interacting with a digital computer can be an unsettling affair. Despite all our school years spent studying the real number continuum, we are rudely awakened to the fact that we must, in practice, content ourselves with some finite set of numbers. This consequence of finite-precision arithmetic introduces roundoff error into numerical computations (even upon input!). Let us explore, via example, how this affects traditional mathematical arguments based upon properties of the real number system.
All of the commonly used numerical differentiation rules possess error
estimates of the form
The portion of the error account for in (1) is called truncation or discretization error. The additional error due to
finite word length is referred to as the roundoff error. The
difficulty lies in the fact that, while truncation error goes to zero with
, the roundoff error becomes unbounded. Consequently, error terms such as
that appearing in (1) present the illusion that unlimited accuracy
is achievable simply by refining the mesh.
For the sake of definiteness, consider the central difference formula
![]() |
|||
![]() |
(3) |