ERROR
ANALYSIS
537
Empirically, the bound (8.4.23)
is
too
large, due
to
cancellation of rounding
errors of varying magnitude and sign. According to Wilkinson
(1963,
p.
108),
a
better empirical bound for most cases
is
{8.4.25)
The result (8.4.24) shows the importance of the size of cond (A).
The quantity p in the bounds can be computed during the elimination process,
and it can also be bounded a priori. For complete pivoting, an a priori bound
is
p
::s;
1.8n(ln
n)/4
n~1
and it
is
conjectured that p
::s;
en
for some
c.
For partial pivoting, an a priori
bound
is
2n-l, and pathological examples are known for which this
is
possible.
Nonetheless, in all empirical studies to date,
p has been bounded
by
a relatively
small number, independent of
n. Because
of
the differing theoretical bounds for
p, complete pivoting
is
sometimes considered superior. In actual practice, how-
ever, the error behavior with partial pivoting
is
as
good as with complete
pivoting. Moreover, complete pivoting requires many more comparisons at each
step of the
eliminatipn process. Consequently, partial pivoting
is
the approach
used
in
all modem Gaussian elimination codes.
One of the most important consequences of the preceding analysis 'is to show
that Gaussian elimination
is
a very stable process, provided only that the matrix
A is not badly ill-conditioned. Historically, researchers in the early 1950s were
uncertain
as
to the stability of Gaussian elimination for larger systems, for
example,
n
~
10,
but that question has now been settled.
The size
of
the residual in the computed solution
x,
namely
r =
b-
Ax
{8.4.26)
is
sometimes linked, mistakenly,
to
thesize of the error x -.X. In fact, the error
in
x can be large even though r is small, and this
is
usually the case with
ill-conditioned problems. From
(8.4.26) and
Ax
=
b,
r=A(x-x)
(8.4.27)
and thus x - x can be much larger than r if A
-l
has large elements.
In practice, the residual
r is quite small, even for ill-conditioned problems. To
suggest
why
this should happen,
use
(8.4.22) to obtain
r = (8A)x
llrU""
.::s::
IISAII..,IIxll..,
Hrllco
118AIIco
----~--
<
-----
IIAIIcollxllco
-
IIAII""
(8.4.28)