Question: Problem 3 . 3 Consider interpolating the following periodic function on interval - , : f ( x ) = e a c o s

Problem 3.3
Consider interpolating the following periodic function on interval -, :
f(x)=eacosx2I0(a),
where a is a given parameter that determines the smoothness of the function, and I0(a) is a Bessel function
used for normalization purposes, available in MATLAB as besseli (0, a). Fix a=3.
We want to see if and how fast the interpolation error converges to zero as the number o interpolation points
increases, for several different types of interpolants.
a) Plot in the same figure function f(x) and polynomial interpolants Pn(x) on n+1 evenly spaced points, where
n=2,4,8,16,32. Note that due to periodicity the values of the function at the first and last nodes will be
equal, but that the polynomial itself does not recognize the periodicity.
b) Plot in the same figure function f(x) and piecewise linear interpolants Ln(x) on n+1 evenly spaced points,
where n=2,4,8,16,32.
c) Plot in the same figure function f(x) and cubic periodic splines Sn(x) on n+1 evenly spaced points, where
n=2,4,8,16,32.
d) Compare these interpolants. For example, you can estimate the maximum error and present results in a
table. Also, you can plot the errors for, say n=32.
 Problem 3.3 Consider interpolating the following periodic function on interval -,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!