Pivoting Strategies 31
The next pass of Gaussian elimination reduces the augmented matrix to
Back substitution now yields
18. Let Abe the n×nmatrix whose entries are given by aij = 1/(i+j−1) for
1≤i, j ≤n.
(a) For n= 5,6 and 7, solve the system Ax=busing single precision arith-
metic. In each case, take bas the vector that corresponds to an exact
solution of xi= 1 for each i= 1,2,3, …, n. Compare the solutions ob-
tained using Gaussian elimination without pivoting, with partial pivoting
and with scaled partial pivoting.
(b) For n= 11,12 and 13, solve the system Ax=busing double precision
arithmetic. In each case, take bas the vector that corresponds to an exact
solution of xi= 1 for each i= 1,2,3, …, n. Compare the solutions obtained
using Gaussian elimination without pivoting, with partial pivoting and
with scaled partial pivoting.
(a) Working in single precision arithmetic, the results obtained for each nand each
Scaled
No Pivoting Partial Pivoting Partial Pivoting