ICS226 Tutorial 3
ICS226 Tutorial 3
ICS 226/ISE225
Time : – hours
√
A1. For f (x) = cos x and f (x) = 1 + x, let x0 = 0, x1 = 0.6 and x2 = 0.9. Construct the
Lagrange polynomial of degree at most 2 to approximate f (0.45) and hence find the
actual error.
Use the Lagrange polynomial error formula to find an error bound for your approxi-
mations.
A3. Use Newton’s interpolatory divided difference formula to construct the interpolating
polynomials of degree 3 for the data:
Estimate f (0.9).
page 1 of 3
ICS 226/ISE225
A7. Show that the Lagrange polynomial that interpolates the function f (x) at the points
x0 , x1 and x2 is equivalent to Newton’s polynomial that passes the same points.
A8. Find the natural cubic spline that fits the data points
x 0 1 2 3
f (x) 8 0 -6 -4
A9. Find the natural cubic spline that fits the data
x 0.1 0.2 0.3 0.4
f (x) -0.62049958 -0.28398668 0.00660095 024842440
page 2 of 3