next up previous
Next: Cutting off the last Up: Numerical Experiments Previous: Stewart's devil's stairs


Problem matrices

The following difficult matrices can be found in [8]. We take 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 4722
$\displaystyle A= \left(\begin{array}{ccc} 10^{40} &...
...19} \\  10^{29} & 10^{20} & 10^{9} \\  10^{19} & 10 ^{9} & 1 \end{array}\right)$    and % latex2html id marker 4723
$\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.00000\cdot 10^{40}, 9.90000\cdot 10^{19}, 9.81818 \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^{-1},1.00000\cdot10^{40}].$

One can see that the eigenvalue solver of Matlab, was only able to calculate one eigenvalue correctly. The eigenvalues computed by the semiseparable procedure are the following:

$\displaystyle [1.00000\cdot 10^{40}, 9.81818\cdot 10^{-1}, 9.90000\cdot
10^{19}]$

all these eigenvalues are correct at least up to six digits.

The next matrix we will investigate is constructed in a similar way as the previous one, suppose we have $ D=diag(10^{20},10^{10},1)$, $ A=D P D$, $ \mu=10^{(-6)}$,

% latex2html id marker 4741
$\displaystyle A= \left(\begin{array}{ccc} 10^{40} &...
...99\cdot 10^{9} \\  9.99 \cdot10^{19} & 9.99 \cdot10 ^{9} & 1 \end{array}\right)$    and % latex2html id marker 4742
$\displaystyle P= \left(\begin{array}{ccc} 1 & 1-\mu &1-\mu \\  1-\mu & 1 &1-\mu \\  1-\mu & 1-\mu & 1 \end{array}\right).$    

The eigenvalues of this matrix are the following: $ \Lambda=[10^{40}, 2
\cdot10^{14}, 1.5 \cdot10^{-6}]$. The eigenvalue solver of matlab cannot solve this problem. The implicit $ QR$ algorithm for semiseparable matrices gives the following eigenvalues.

$\displaystyle [1.000000000000000\cdot 10^{40},1.999999000102929\cdot 10^{14},1.499999749837038\cdot 10^{-06}]$    

these results are correct up to six digits.

These results show immediately, that although the algorithm is slower, it performs in several cases much better than the traditional $ QR$ with tridiagonal matrices. In some cases it can be seen that the $ QR$ steps do not need to be performed anymore, because the reduction already reveals all the information.


next up previous
Next: Cutting off the last Up: Numerical Experiments Previous: Stewart's devil's stairs
Raf Vandebril 2004-04-19