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: c02an_example
function c02an_example fprintf('c02an example results\n\n'); e = complex(1); a = -10 + 2i; b = 48 - 10i; c = -100 + 28i; d = complex(96); [zr, zi, errest, ifail] = c02an(e, a, b, c, d); fprintf(' Roots of quartic error estimates\n'); for j = 1:4 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
c02an example results Roots of quartic error estimates 3.0000 - 3.0000i 1.55e-14 1.0000 - 1.0000i 1.18e-14 2.0000 - 2.0000i 2.14e-14 4.0000 - 4.0000i 2.02e-14