next up previous contents index
Next: Numerical experiments: Deflation possibilities Up: Implementation of the algorithm Previous: Experiment 4   Contents   Index


Numerical experiments: The accuracy of the reduction algorithm

In the following experiment a nongraded matrix with a large condition number ( $ \approx 10^{40}$) is transformed accurately into a semiseparable matrix. The following problems are taken from [47]. We consider some of the eigenvalue problems which the traditional $ QR$-algorithm cannot solve. We take the following matrix: $ A=D P D$, where $ D=\diag(10^{20},10^{10},1)$,

% latex2html id marker 35446
$\displaystyle A= \left( \begin{array}{ccc} 10^{40}...
...9} \\  10^{29} & 10^{20} & 10^{9} \\  10^{19} & 10 ^{9} & 1 \end{array} \right)$    and % latex2html id marker 35447
$\displaystyle P= \left( \begin{array}{ccc} 1 & 0.1 & 0.1 \\  0.1 & 1 & 0.1 \\  0.1 & 0.1 & 1 \end{array} \right).$    

The eigenvalues of the matrix $ A$ are the following:

$\displaystyle \Lambda=[1.000000000000000\cdot 10^{40}, 9.9000000000000000\cdot 10^{19}, 9.818181818181818 \cdot 10^{-1}].$

The eigenvalues computed by the routine $ eig( \cdot )$ in MATLAB are as follows:

$\displaystyle [ -3.85544\cdot 10^{23},
9.90002\cdot10^{-01},1.000000000000000\cdot10^{40}].$

One can see that the eigenvalue solver of MATLAB, was only able to calculate one eigenvalue correctly. When we reduce the matrix $ A$ to semiseparable form we get the following matrix:

% latex2html id marker 35459
$\displaystyle \left( \begin{array}{lll} 1.18800000...
....910000000000 \cdot 10^{9} & 1.000000000000 \cdot 10^{40} \end{array} \right) .$    

One eigenvalue already converged, and computing the eigenvalues of the upper left $ 2$ by $ 2$ block, we get the following eigenvalues:

$\displaystyle \left[ 9.818181818181789 \cdot 10^{-1}, 9.900000000000000 \cdot 10^{19} \right].$    

So all the eigenvalues can be computed when first using the reduction to semiseparable form, and this up to at least $ 14$ correct significant decimal digits.

Calculating the eigenvalues of the matrix $ JAJ$ ($ J$ is the counteridentity matrix, sometimes also called the exchange matrix) with

% latex2html id marker 35473
$\displaystyle J= \left( \begin{array}{ccc} 0 & 0 & 1 \\  0 & 1 & 0 \\  1 & 0 & 0 \end{array} \right),$    

both algorithms give accurate results. The eigenvalue solver of MATLAB gives the following result:

$\displaystyle \left[ 9.818181818181818 \cdot 10^{-1}, 9.900000000000000 \cdot 10^{19} , 1.000000000000000 \cdot 10^{40} \right].$    

and the results based on the construction of the semiseparable matrix are exactly the same up to sixteen digits.
next up previous contents index
Next: Numerical experiments: Deflation possibilities Up: Implementation of the algorithm Previous: Experiment 4   Contents   Index
Raf Vandebril 2004-05-03