% % computational verification of ill-condition for Problem 4.3a % f = poly([1 1 1]) z = roots(f) % % calulate forward error % norm([1;1;1] - z) % % construct a polynomial with the computed roots % g = poly([z(1),z(2),z(3)]) % % backward error % norm(f-g) % % showing the condition number is at least 10^10 %