next up previous contents index
Next: Cutting off the last Up: Tests on the symmetric Previous: Stewart's devil's stairs   Contents   Index


Problem matrices

The following difficult matrices can be found in [47]. We take some of the eigenvalue problems which the traditional $ QR$-algorithm cannot solve in finite precision. We consider the following matrix: $ A=D P D$, where $ D=\diag(10^{20},10^{10},1)$,

% latex2html id marker 39704
$\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 39705
$\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, could only compute one eigenvalue correctly. The eigenvalues computed by the semiseparable procedure are

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

All these eigenvalues have at least six correct digits.

The next matrix we 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 39723
$\displaystyle A= \left( \begin{array}{ccc} 10^{40}...
...9\cdot 10^{9} \\  9.99 \cdot10^{19} & 9.99 \cdot10 ^{9} & 1 \end{array} \right)$    and % latex2html id marker 39724
$\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 $ \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 the algorithm performs in several cases much better than the traditional $ QR$ with tridiagonal matrices. In some cases the $ QR$-steps do not need to be performed anymore, because the reduction already reveals all the information.


next up previous contents index
Next: Cutting off the last Up: Tests on the symmetric Previous: Stewart's devil's stairs   Contents   Index
Raf Vandebril 2004-05-03