For the mathematical background, please read the Wikipedia page on the Jacobi method.
Matrix dimension = 5. Precision = 2 digits. Magnitude of matrix entries = 100.
1. | Determine $i,j$ ($i\neq j$) such that $|a_{ij}|$ is maximal. |
2. | Compute $c,s$. |
3. | Recalculate $A,Q$. |
$Q^t$ | $A$ | $Q$ | $B$ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
= |
|
$\sum_{i\neq j}a_{ij}^2=$* | $c=$ |
$\sum_{i}a_{ii}^2=$* | $s=$ |
Copyright by © Gábor P. Nagy, 2013.