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: c02ak_example
function c02ak_example fprintf('c02ak example results\n\n'); % roots of cubic z^3 + 3*z^2 + 9*z - 13 = 0 u = 1; r = 3; s = 9; t = -13; [zr, zi, errest, ifail] = c02ak(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
c02ak example results Roots of cubic error estimates 1.0000 - 0.0000i 1.00e-15 -2.0000 - 3.0000i 1.04e-15 -2.0000 - 3.0000i 1.04e-15