
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

HW 3, due Monday, Oct. 2
Please turn in your papers to me at the beginning of the class on Monday.
Solve problem 13(b) on page 164. Keep numbers in the divided difference table as fractions, that is, do not change fractions to decimal numbers. Rewrite p(x) in nested form.
Solve problem 13 on page 178.
Solve problem 9(a) on page 192. Do not derive the given formula. Just use it to show that for the error
E = f (3)(x) โ
2 h^3
[f (x + 2h) โ f (x โ 2 h) โ 2 {f (x + h) โ f (x โ h)}],
we have |E| โค Chp. Find p and C assuming that f (5)^ is continuous on an interval [a, b] containing x โ 2 h and x + 2h. (Donโt worry about the answer in the book.)
Computer problem. Solve problems 1 and 2 on page 179. Use double precision (double in C++) and procedures Coef and Eval on pages 153 and 154. For each suggested value of x, print in a horizontal line x, f (x), pn(x), |f (x) โ pn(x)| using 6, 7 significant decimal digits for each of those 4 numbers (you can use cout in C++). Turn in: code, results, discussion.