Question: Numerical Methods Question: (WILL NEED MATLAB) Suppose we want to approximate the function e x on the interval [0,1] by using polynomial interpolation with x
Numerical Methods Question: (WILL NEED MATLAB)
Suppose we want to approximate the function ex on the interval [0,1] by using polynomial interpolation with x0=0,
x1=1/2 and x2=1. Let p2(x) denote the interpolating polynomial.
(a) Find an upper bound for the error magnitude

(b) Find the interpolationg polynomial using your favorite technique.
(c) Plot the function ex and the interpolant you found, both on the same figure, using the commands plot.
(d) Plot the error magnitude
on the interval using logarithmic scale (the command semilogy) and verify by inspection that it is below the bound you found in part (a).
max e p2(T)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
