14 Section 3.1
12. 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. Calculate the maximum
component-wise error between the computed solution and the exact so-
lution for each n.
(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 ex-
act solution of xi= 1 for each i= 1,2,3, …, n. Calculate the maximum
component-wise error between the computed solution and the exact solu-
tion for each n.
(a) The components of the solution for each system are listed in the table below.
n= 5 n= 6 n= 7
x11.00008 1.00039 1.00083
(b) The components of the solution for each system are listed in the table below.
n= 11 n= 12 n= 13
x21.00000 1.00000 0.999984
x41.00016 1.00112 0.989763
x61.00329 1.03538 0.501003
x81.00973 1.17542 −3.03606
x10 1.00373 1.14866 −5.49353
x12 1.01102 −0.618191