diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-11-27 14:06:16 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-11-27 14:06:16 -0700 |
commit | 793c01c9bd61a5b461b44fc7ede04cc1dd90a4ec (patch) | |
tree | a444a84b1d6bdd7f0642304b9e429903e1c0e1ac /homeworks | |
parent | 76e00682b2fcc557f24af9db7629d1c868bdf93c (diff) | |
download | cmath-793c01c9bd61a5b461b44fc7ede04cc1dd90a4ec.tar.gz cmath-793c01c9bd61a5b461b44fc7ede04cc1dd90a4ec.zip |
add shifted eigenvalue procedure and unit test
Diffstat (limited to 'homeworks')
-rw-r--r-- | homeworks/hw-7.org | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/homeworks/hw-7.org b/homeworks/hw-7.org index dbdf6bb..ec8c23d 100644 --- a/homeworks/hw-7.org +++ b/homeworks/hw-7.org @@ -21,7 +21,23 @@ finds the least dominant eigenvalue on the matrix: 0 & 2 & 6 \end{bmatrix} -which has eigenvalues: $5 + \sqrt{17}, 2, 5 - \sqrt{17}$ and should produce $\sqrt{17}$. +which has eigenvalues: $5 + \sqrt{17}, 2, 5 - \sqrt{17}$ and should thus produce $5 - \sqrt{17}$. See also the entry ~Eigen-Adjacent -> least_dominant_eigenvalue~ in the LIZFCM API documentation. +* Question Four +See ~UTEST(eigen, shifted_eigenvalue)~ in ~test/eigen.t.c~ which +finds the least dominant eigenvalue on the matrix: + +\begin{bmatrix} +2 & 2 & 4 \\ +1 & 4 & 7 \\ +0 & 2 & 6 +\end{bmatrix} + +which has eigenvalues: $5 + \sqrt{17}, 2, 5 - \sqrt{17}$ and should thus produce $2.0$. + +With the initial guess: $[0.5, 1.0, 0.75]$. + +See also the entry ~Eigen-Adjacent -> shift_inverse_power_eigenvalue~ in the LIZFCM API +documentation. |