1. Engineering
  2. Computer Science
  3. matlab problem consider the polynomial interpolation on the in terval...

Question: matlab problem consider the polynomial interpolation on the in terval...

Question details


Matlab Problem. Consider the polynomial interpolation on the in terval -1, 1] with two types of f(x): 五(x) = cos(x), f2(x) = 1+12 1 + x2 Write a matlab script for computing the error of polynomial interpola- tions of f (x), and fill in the following table. The error of polynomial interpolation is defined aswhere r is a vector representing the uniform grid points on-1,1 Hint: Using the element-wise division ./ and the element-wise power fi(a) f2(x) Naive Err Lagrange Err Naive Err Lagrange Err 10 20 40

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution