|
|
Condition( |
Condition( |
Condition( |
|
| 1 | 6.2500000e-02 | 1.9730530e+03 | 1.0973156e+02 | 9.8528442e+01 |
| 2 | 7.7160499e-04 | 1.5987623e+05 | 1.1662279e+02 | 7.8476879e+03 |
| 3 | 1.1972999e-05 | 1.0303353e+07 | 1.1671302e+02 | 5.0564809e+05 |
| 4 | 1.1800000e-07 | 1.0494080e+09 | 1.1671443e+02 | 5.1500656e+07 |
| 5 | 9.9998942e-10 | 1.0242767e+11 | 1.1671445e+02 | 5.0267124e+09 |
| 6 | 0 | 1.0270375e+13 | 1.1671445e+02 | 5.0399766e+11 |
It can be seen, that the bad conditioning of
is completely incorporated in the matrix
. In the following table, it can be seen that the loss of significant numbers can completely be explained by the ill conditioning of the matrix. When using the notation
, where
denotes the exact solution and
is the solution calculated by the algorithm, then the relative residual norm is calculated as follows:
.
| Relative residual norm |
|
||
| 1 | 0.269875541131E-15 | 0.137537825554E+02 | 2.124455918105E+00 |
| 2 | 0.151802077218E-13 | 0.750048621793E+03 | 2.125753734878E+00 |
| 3 | 0.775739556738E-12 | 0.483388831755E+05 | 2.125769724492E+00 |
| 4 | 0.787803224555E-10 | 0.492337955471E+07 | 2.125769974033E+00 |
| 5 | 0.745524749715E-08 | 0.480537415275E+09 | 2.125769976496E+00 |
| 6 | 0.938779346662E-06 | 0.482384800059E+11 | 2.125769976517E+00 |
In the second part we first took fixed parameters, for the system
, except for
and the right-hand side
, the
's here are the same as those above, to have an ill conditioned system. For every
we searched the right-hand side using a fixed solution
(with
). On these problems we ran the algorithm, and calculated the relative residual norm and the relative error norm (which is calculated as follows:
), as shown in the next table:
| Relative residual norm | Relative error norm | |
| 1 | 0.247972802994E-15 | 0.273041336350E-13 |
| 2 | 0.302336805921E-15 | 0.107901396342E-11 |
| 3 | 0.236340232958E-15 | 0.163183467236E-09 |
| 4 | 0.308345718370E-15 | 0.269762204052E-08 |
| 5 | 0.251476127414E-15 | 0.530808215848E-07 |
| 6 | 0.269757268817E-15 | 0.707838423187E-04 |
In the last test we did, we tried some random examples. We generated random examples in Fortran and printed out the relative residual norm. We took
and did ten random tests for each choice of
where
. In figure 2 the relative residual norms are shown.