6. We want to study the effect of different choices of interpolation points {X0,X1,..., 2n} on...
- solution must be coded in either matlab or Octave. - must avoid use of symbolic variables such as "syms x." here we are instructed to use the base GNU Octave, that is, without any external packages. - best of luck, I am rather stuck 4. Let f(x) e. Compare evenly spaced interpolation with Chebyshev interpolation by plotting degree n polynomials of both types on the interval [-1, 1], for n = 10 and 20. Fo evenly spaced interpolation, the...
2. Graph the functions f(x)x(x 1)(x-2) ..(x- k) for k- 1,2,..,10. (These are examples of the polynomials occurring in the error formula for polynomial interpolation.) We want to produce an evenly spaced table of values for the function f(x) sin(x) for x E [O,T/2] such that, with cubic interpolation, we can give the values of the function at any point in the interval with an error less than 5 10-12. That means finding a number n such that with h-/2n...
We want to produce an evenly spaced table of values for the function f(x) sin(x) for x E [0,Tt/2] such that, with cubic interpolation, we can give the values of the function at any point in the interval with an error less than 5 10-12. That means finding a number n such that with h = π/2n and Xk-kh, k-0, , n the cubic interpolation polynomial with the interpolation points XK-1,XK, X+1 XK+2 for x has an error less than...
numerical methods 2+17), j = 0,1...... Problem 1: Recall that the Chebyshev nodes x0, 71,..., are determined on the interval (-1,1) as the zeros of Tn+1(x) = cos((n +1) arccos(x)) and are given by 2j +17 X; = cos in +12 Consider now interpolating the function f(x) = 1/(1+22) on the interval (-5,5). We have seen in lecture that if equispaced nodes are used, the error grows unbound- edly as more points are used. The purpose of this problem is...
7 points Question 3. An Unusual Integrable Function (Show Working) Consider the function f : 10, 11 → R defined by 1 if r-for some nEN; f(x) = 0 for all other x E [0,1 (1 subpts) (a) Draw a rough diagram of the graph of f. When we study the formal definition of the continuity of a function later in the course, we will be able to prove that this function is discontinuous at those domain values r such...