next up previous
Next: The software. Up: Numerical Examples Previous: Timings

Stability

First of all, we changed the parameter $ \lambda$, to make the system of equations very ill-conditioned, we did this for parameter values $ n_1=16$ and $ n_2=16$. We also chose $ p_0,p_1,q_0,q_1$ to be different from 0, because otherwise we would have the Neumenn problem. Note that if we fill in for $ \lambda$ the eigenvalues of $ M_{RR}$ (with $ \lambda$=0), then the corresponding $ M_{RR}$ matrix becomes singular. We approximated the largest eigenvalue in modulus using the power method, and then changed it slightly, to obtain some different condition numbers for the matrix $ M_{RR}$. The largest eigenvalue obtained by the power method was $ \lambda=1.06175777127e+02
$ In the following table: $ \Delta\lambda$ and the different condition numbers are shown:

$ n^{o}$ $ \Delta\lambda$ Condition($ M_{RR}$) Condition($ M_{NN}$) Condition($ B$)
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 $ M_{NN}$ is completely incorporated in the matrix $ B$. 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 $ M_{RR} \mathbf{u}
=\mathbf{b}$, where $ \mathbf{u}$ denotes the exact solution and $ \mathbf{x}$ is the solution calculated by the algorithm, then the relative residual norm is calculated as follows: $ \Vert M_{RR}\mathbf{x}-\mathbf{b}\Vert _{2}/\Vert\mathbf{b}\Vert _{2}$.



$ n^{o}$ Relative residual norm $ \Vert x\Vert _2$ $ \Vert M_{RR}\Vert _{2}$
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 $ M_{RR}$, except for $ \lambda$ and the right-hand side $ f_{i,j}$, the $ \lambda$'s here are the same as those above, to have an ill conditioned system. For every $ \lambda$ we searched the right-hand side using a fixed solution $ \mathbf{u}_{e}$ (with $ \Vert\mathbf{u}_e\Vert _2\approx 500$). On these problems we ran the algorithm, and calculated the relative residual norm and the relative error norm (which is calculated as follows: $ \Vert\mathbf{x}-\mathbf{u}_e\Vert _{2}/\Vert\mathbf{u}_e\Vert _{2}$), as shown in the next table:

$ n^{o}$ 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 $ n_1=n_2$ and did ten random tests for each choice of $ n_1=2^k$ where $ k=3,4,..,10$. In figure 2 the relative residual norms are shown.

Figure 2: Relative residual norms for the overall algorithm.
\includegraphics[scale=0.7]{error}


next up previous
Next: The software. Up: Numerical Examples Previous: Timings
Raf Vandebril 2004-04-19