













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!














Review
L. Olson
Department of Computer Science University of Illinois at Urbana-Champaign
November 8, 2006
Interpolation Integration Differentiation
T/F If the polynomial interpolating a given set of data points is unique, then so is the representation of that polynomial.
T/F When interpolating a continuous function by a polynomial at equally spaced points on a given interval, the polynomial interpolant always converges to the function as the number of interpolation points increases.
T/F If the polynomial interpolating a given set of data points is unique, then so is the representation of that polynomial.
T/F When interpolating a continuous function by a polynomial at equally spaced points on a given interval, the polynomial interpolant always converges to the function as the number of interpolation points increases.
Is it possible for two distinct polynomials to interpolate the same n + 1 data points? If so, under what conditions, and if not, why?
f (x) = x and f (x) = x^2 both go through TWO points: 0 and 1
n points uniquely determine an n − 1 interpolating polynomial
State at least two important criteria for choosing a particular set of basis functions for use in interpolation.
For a given set of data points (xi, yi), rank the following in terms according to the cost of determining the interpolant (i.e. determining the coefficients of the basis functions) from cheapest to most expensive: Monomial basis, Lagrange basis, Newton basis.
For which of the three methods is evaluating the resulting interpolant at a given point the most expensive?
For which of the three methods is evaluating the resulting interpolant at a given point the least expensive?
What is the Vandermonde matrix and why is it often ill-conditioned (e.g. for monomials)?
For y = a 2 x^2 + a 1 x + a 0 to interpolate data (xi, yi):
1 x 0 x^20 1 x 1 x^21 1 x 2 x^22
V
a 0 a 1 a 2
y 0 y 1 y 2
e.g. Matlab: vander
For Lagrange polynomial of n + 1 data points (xi, yi), What is the degree of each polynomial function `j(x) in the Lagrange basis?
For Lagrange polynomial of n + 1 data points (xi, yi), What function results if we sum the n + 1 function in the Lagrange basis (i.e. if we take g(x) =
∑n j= 1 L n j (x))
Name one advantage and one disadvantage of Lagrange interpolation.
What’s is the computational cost of evaluating a polynomial of degree n using Horner’s method (nested iteration).
Suppose we want to interpolate a large number of points. What is one advantage of using piecewise interpolation over interpolation by a single polynomial?
Name one advantage and one disadvantage of Lagrange interpolation.
What’s is the computational cost of evaluating a polynomial of degree n using Horner’s method (nested iteration).
Suppose we want to interpolate a large number of points. What is one advantage of using piecewise interpolation over interpolation by a single polynomial?
Nested: p(x) = b 1 + x(b 2 + x(b 3 + x(b 4 + b 5 x)))
- 1.0000 1. common. T/F The nodes for n-pt GL quadrature are the roots of the nth Lagrange polynomial
Suppose n is large. Do you expect n-point Newton-Cotes quadrature rule to work well for integrating Runge’s function
− 1
1 1 +x^2 dx^ if^ n^ is large? Why or why not?
Suppose n is large. Do you expect n-point Newton-Cotes quadrature rule to work well for integrating Runge’s function
− 1
1 1 +x^2 dx^ if^ n^ is large? Why or why not?
Careful...we’re integrating. The osciallations still persist interpolating, but...