Let
be the relative error in the argument and
be the absolute error in the result. (Since
oscillates about zero, absolute error and not relative error is significant.)
If
is somewhat larger than machine precision (e.g. if
is due to data errors etc.), then
and
are approximately related by
(provided
is also within machine bounds).
However, if
is of the same order as machine precision, then rounding errors could make
slightly larger than the above relation predicts.
For very large
, the above relation ceases to apply. In this region,
. The amplitude
can be calculated with reasonable accuracy for all
, but
cannot. If
is written as
where
is an integer and
, then
is determined by
only. If
,
cannot be determined with any accuracy at all. Thus if
is greater than, or of the order of, machine precision, it is impossible to calculate the phase of
and the function must fail.