SOLUTION
2. Graph the functions f(x)x(x 1)(x-2) ..(x- k) for k- 1,2,..,10. (These are examples of the poly...
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...
Consider polynomial interpolation of the function f(x)=1/(1+25x^2) on the interval [-1,1] by (1) an interpolating polynomial determined by m equidistant interpolation points, (2) an interpolating polynomial determined by interpolation at the m zeros of the Chebyshev polynomial T_m(x), and (3) by interpolating by cubic splines instead of by a polynomial. Estimate the approximation error by evaluation max_i |f(z_i)-p(z_i)| for many points z_i on [-1,1]. For instance, you could use 10m points z_i. The cubic spline interpolant can be determined in...
QUESTION 5: f(x) = 2 -(x-1) + x(x + 1) – 2x(x + 1)(x - 1) + 2x(x + 1)(x - 1)(x - 2) function (-1,2), (0,1), (1,2), (2, -7), (3,10) passes through these points and (4,5) Find the interpolation polynomial that passes through the point. 그 QUESTION 6: f(x) = cosx + x3 + xe-* using the values you want for this function write the second Lagrange interpolation polynomial that cuts and using this polynomial f(1,5) value find the...
6. We want to study the effect of different choices of interpolation points {X0,X1,..., 2n} on the function wn(x) = (x – xo)(x – 21)... (x – In) in the formula for the error in interpolation polynomials. In particular, we want to study evenly spaced points and Chebyshev points in the interval (-1, 1). Con- sider the following choices: 2i (a) x₂ = –1 + i = 0.....n n 7T (b) X; = - cos i = 0,...,n. n +1...
3.11 Theorem. Suppose f(x)-a"x" + an-lx"-+ + ao is a poly- nomial of degree n > 0 and suppose an > 0. Then there is an integer k such that ifx >k, then f(x)> 0. Note: We are only assuming that the leading coefficient an is greater than zero. The other coefficients may be positive or negative or zero. The next theorem extends the idea that polynomials get positive and roughly states that not only do they get positive, but...
this is numerical analysis 2. Consider the function f(x) = -21° +1. (a) Calculate the interpolating polynomial pz() for data using the nodes 2o = -1, 11 = 0, 12 = 1. Simplify the polynomial to standard form. Use the error theorem for polynomial interpolation to bound the error f(x) - P2(x) on the interval (-1,2). Is this bound realistic?
11. In an introductory calculus course, you may have seen of the form approximation formulas for integrals f(t)dt wf(a,), 2 where the a, are equally spaced points on the interval (a,b) and the u, are certain "weights (giving Riemann sums, trapezoidal sums, or showed that, with the same computational effort (same type of formula) we can get better approximations if we don't require the a, to be equally spaced. Simpson's rule depending on their values). Gauss Consider the space P,...
1. (Taylor Polynomial for cos(ax)) For f(x)cos(ar) do the following. (a) Find the Taylor polynomials T(x) about 0 for f(x) for n 1,2,3,4,5 (b) Based on the pattern in part (a), if n is an even number what is the relation between Tn (x) and TR+1()? (c) You might want to approximate cos(az) for all in 0 xS /2 by a Taylor polynomial about 0. Use the Taylor polynomial of order 3 to approximate f(0.25) when a -2, i.e. f(x)...
matlab matlab For this problem you will test a few interpolation approaches for the application of generating interpolated data. We'll do this by interpolating data that is sampled from a known mathematical function. The same function can then be used to compute true values at the interpolated points to use in error Consider the following mathematical function (Runge's function): 1+25r2 Write a function mfile that uses this formula to generate a set of data use those points along approaches outlined...
1. Runge's function is written as f(x) = 1 25r2 (a) Develop a plot of this function for the interval from x =-1 to 1 using Matlab (no submission required). Develop the fourth-order Lagrange interpolating polynomial using equispaced function values corresponding to xi =-1,-0.5, 0, 0.5, and 1. (Note that you first need to determine the (a. ) pairs.) Use the polynomial to estimate f(0.9). (b) What is et? (c) Generate a cubic spline using the five data points from...