Docsity

Homework 5 Questions - Applied Numerical Methods | MATH 151A, Assignments of Mathematics

Toggle sidebar
bg1
Math 151A Homework #5
1. Consider the function f(x) = x5.
a. Use the points x={−1,0,1}and Newton’s divided differences to construct the inter-
polation polynomial through those points.
b. Now add the point x= 2.
c. Now use the points x={0,1}and the derivatives at those points to construct a Hermite
interpolating polynomial through those two points.
d. Plot all of these on the same plot.
2. Mean value theorem
Suppose f∈C1[a, b]. Then what do we know about the following quantity?
f(b)−f(a)
b−a
3. Round-off error
We can think of chopping as rounding down, and “rounding” as rounding off. Then if we
round up, what do we expect the error to be?
4. bisection method
Suppose we want to find the root of the function f(x) = sin3(x) on the interval [2,4]. How
many iterations of the bisection method will it take to compute the root to a precision of
10−8.
5. Newton’s method
What is the order of convergence of Newton’s method?
6. Computer arithmetic
Write the polynomial P(x)=3x2+ 2x2−x+ 1 in a form that minimizes the number of
arithmetic operations.
7. Lagrange polynomials
Draw the graph of the Lagrange polynomial L4,2.
8. Bisection method
Which theorem ensures that the bisection method always brackets a root?
pf2

Partial preview of the text

Download Homework 5 Questions - Applied Numerical Methods | MATH 151A and more Assignments Mathematics in PDF only on Docsity!

Math 151A Homework #

  1. Consider the function f (x) = x^5.

a. Use the points x = {− 1 , 0 , 1 } and Newton’s divided differences to construct the inter- polation polynomial through those points. b. Now add the point x = 2.

c. Now use the points x = { 0 , 1 } and the derivatives at those points to construct a Hermite interpolating polynomial through those two points. d. Plot all of these on the same plot.

  1. Mean value theorem Suppose f ∈ C^1 [a, b]. Then what do we know about the following quantity?

f (b) − f (a) b − a

  1. Round-off error We can think of chopping as rounding down, and “rounding” as rounding off. Then if we round up, what do we expect the error to be?
  2. bisection method Suppose we want to find the root of the function f (x) = sin^3 (x) on the interval [2, 4]. How many iterations of the bisection method will it take to compute the root to a precision of 10 −^8.
  3. Newton’s method What is the order of convergence of Newton’s method?
  4. Computer arithmetic Write the polynomial P (x) = 3x^2 + 2x^2 − x + 1 in a form that minimizes the number of arithmetic operations.
  5. Lagrange polynomials Draw the graph of the Lagrange polynomial L 4 , 2.
  6. Bisection method Which theorem ensures that the bisection method always brackets a root?
  1. Binary arithmetic Suppose my computer uses 4 bits for the mantissa, and 2 bits for the characteristic, rep- resented by (M M M M, CC). What is the result of adding the numbers represented by (0100, 00) and (1101, 00)?
  2. Order of convergence Find the order of convergence of the sequence pn = (^12 )^3 n?
  3. Method of false position What advantage does the method of false position offer over the secant method?