Question

6. We want to study the effect of different choices of interpolation points {X0,X1,..., 2n} on the function wn(x) = (x – xo)(

0 0
Add a comment Improve this question Transcribed image text
Answer #1

%%Matlab code for plotting interpolation polynomial function wn(x) clear all close all %Different choice of interpolation poi%Fine resolution points for ploting the function xl=linspace(-1,1,1000); % Ploting wn(x) function figure(j) hold on plot(x1,dplotting of w/(x) in the interval of [-1 1] for n=10 0.01 0.008 evenly spaced points Chebyshev points 0.006 0.004 0.002 w.()10-5 plotting of w,(x) in the interval of [-1 11 for n=30 0.8 evenly spaced polnts Chebyshev points 0.6 0.4 0.2 w (X) -02 -0.

Add a comment
Know the answer?
Add Answer to:
6. We want to study the effect of different choices of interpolation points {X0,X1,..., 2n} on...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • - solution must be coded in either matlab or Octave. - must avoid use of symbolic...

    - 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 poly...

    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...

    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...

    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, ...

    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...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT