Show that interpolating \(f(x)=\cosh(x)\) with a polynomial of degree 22 in \([-1,1]\) using 23 Chebisehv points gives a maximum error not greater than \(5\times10^{-16}\text{.}\)
3.
Interpolate the function \(f(x)=\frac{1}{1+x^2}\) in the interval \([0,1]\) using:
three equidistant points;
three Chebyshev points.
Estimate the maximum of the distance between the two interpolating polynomials and the function \(f(x)\) (for instance by using MATLAB to plot the difference) and compare it with the upper bound provided by the error formulae of Section 7.3