None.
On entry, | . |
(a) | Form matrix . |
(b) | Apply a diagonal similarity transformation to (to give ). |
(c) | Calculate the eigenvalues and Schur factorization of . |
(d) | Calculate the left and right eigenvectors of . |
(e) | Estimate reciprocal condition numbers for all the eigenvalues of . |
(f) | Calculate approximate error estimates for all the eigenvalues of (using the -norm). |
Open in the MATLAB editor: c02am_example
function c02am_example fprintf('c02am example results\n\n'); u = complex(1); r = -2 + 3i; s = 5 + 14i; t = -40 - 5i; [zr, zi, errest, ifail] = c02am(u, r, s, t); fprintf(' Roots of cubic error estimates\n'); for j = 1:3 if (zi(j)<0) fprintf('%8.4f - %7.4fi %8.2e\n',zr(j),abs(zi(j)),errest(j)); else fprintf('%8.4f - %7.4fi %8.2e\n',zr(j),abs(zi(j)),errest(j)); end end
c02am example results Roots of cubic error estimates -2.0000 - 3.0000i 1.73e-15 1.0000 - 2.0000i 3.64e-15 3.0000 - 4.0000i 3.74e-15