
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!

Midterm #
Closed book, no calculators, no cheating...
Each problem is worth 20 points.
Problem 1 a) Find the Taylor polynomial of order 3 for the function f (x) = sin x around x 0 = π. b) Use the Taylor polynomial of order 4 for sin x around x 0 = 0 to estimate ∫ (^1)
0
sin x − x x^3
dx.
c) Show that the error in the above estimate has magnitude less than (^) 5!^1.
Problem 2 Suppose that the real numbers are represented with a 4-bit mantissa f and a 3-bit characteristic c shifted by 4, i.e. 2c−^4 (1 + f ). a) How many positive real numbers are contained in such a representation? b) What is the largest number that can be represented with this system?
Problem 3 Suppose that you want to use Newton’s method to find the zero of the function f (x) = (x − 3)
1 (^3). Does Newton’s method converge? If you answer ”no” explain why. If you answer ”yes”, what is the order of convergence? Hint: Express xn+1 − 3 as a function of xn − 3.
Problem 4 Let g(x) = 3x^4 + 4x^3. a) Show that p = 0 and ˆp = −1 are fixed points for the function g(x). b) Assume that you use fixed-point iteration with some initial approximation p 0 which is sufficiently close to p = 0 so that the sequence of approxima- tions p 0 , p 1 , p 2 ,... converges to 0. What is the order of convergence of the sequence? c) Similarly for ˆp = − 1.
Problem 5 a) Use Horner’s method to evaluate the polynomial p(x) = x^3 + x^2 − x − 1 at x 0 = 2. b) Use part a) to find q(x) and c such that p(x) = (x − 2)q(x) + c.