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: c02al_example
function c02al_example fprintf('c02al example results\n\n'); e = 1; a = 2; b = 6; c = -8; d = -40; [zr, zi, errest, ifail] = c02al(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
c02al example results Roots of quartic error estimates 2.0000 - 0.0000i 8.90e-16 -2.0000 - 0.0000i 1.10e-15 -1.0000 - 3.0000i 1.00e-15 -1.0000 - 3.0000i 1.00e-15