# 1 Plain Iteration
When iterating
,
how much precision is necessary?
Suppose one says the image is reliable when the final
,
with all the rounding errors along the way, is equal to an exact
for a
that is not too different from the input
(for example, they are within a pixel distance).
Call the forward error in
due to rounding,
,
and calculate derivatives
,
then the condition that there is a
near
resolves to
where
.
Rounding
gives
,
where
is at most
.
The forward error compounds like:
Assuming
is small (and
is large), ignore the squared term, to get
and as
all its error is from rounding, so
Altogether in the worst case
which logs to
Now
is small, so
which gives
and then by WolframAlpha,
where
is the inverse function of
.
As
grows very slowly, the commonly used approximation
is generally reasonable even when
is quite small.
# 2 Perturbed Iteration
When iterating
at one point (with plenty of precision) then rounding each
to a working precision and iterating differences of nearby points
,
how much precision is necessary?
I have not found a way to compute this other than as a per-pixel
status, which tells if the pixel is inaccurate.
Compute:
Then the pixel is inaccurate when:
Ideally it would be better to know beforehand how much precision is
required for every pixel.