blob: 25013bc144bad1e4f017f958833ceca984366aee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// PG (608)
A = [1 2 3;2 3 4;3 4 5]
lam = spec(A)' // Eigen values of A
lam1 = lam(1,3)
lam2 = lam(1,1)
lam3 = lam(1,2)
// Theoretical ratio of convergence
lam2/lam1
// After extrapolating, we get
lame1 = 9.6234814
// Error:
lam1-lame1
|