Next: Handling erna objects
Up: Exact Real Computation in
Previous: Motivating example
In Maple, the system variable Digits controls the relative
precision of a computation. In most of the applications, however, the
measure of precision is the accuracy:
Definition 1
Let
be a real number, and
. A rational number
is an approximation of accuracy
for
(sometimes called
-approximation) iff
Our representation of real numbers is based on the concept of
accuracy. From the software engineering point of view, an exact real
number is an object that fulfills the following:
- for every
, it should be possible to compute an
-approximation of ;
- if an approximation of accuracy
is known, an
approximation of accuracy
should be easily
obtainable, for rational ;
- the most precise approximation already computed should be
instantly available, together with its accuracy;
- the user should be able to handle real numbers without
necessarily computing more or less accurate approximations of them.
These specifications can be extended to complex numbers, or to
vectors/matrices with real entries (the absolute value is replaced now
by a suitable norm). In general, we will call such an object
erna object (erna real, erna complex, etc.). Erna stands for exact real number arithmetic, a common
appellative for techniques for manipulating computable reals.
Next: Handling erna objects
Up: Exact Real Computation in
Previous: Motivating example