next up previous
Next: Experiment 6: Symmetric Rank Up: Numerical experiments Previous: Experiment 4


Experiment 5

The following problems are taken from [4]. We consider some of the eigenvalue problems which the traditional $ QR$ algorithm cannot solve. We consider the following matrix: $ A=D P D$, where $ D=diag(10^{20},10^{10},1)$,

% latex2html id marker 6210
$\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 6211
$\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 gives the following results:

$\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 6223
$\displaystyle \left(\begin{array}{lll} 1.1880000000...
...0000000000 \cdot 10^{9} & 1.000000000000000 \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 digits.

Calculating the eigenvalues of the matrix $ JAJ$ with

% latex2html id marker 6235
$\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
Next: Experiment 6: Symmetric Rank Up: Numerical experiments Previous: Experiment 4
Raf Vandebril 2004-04-19