for the function f(x)=cos(x) define within [0, pi], what will be the maximum error if f is approximated by 10th and 15th degree interpolating polynomials. Solve this in MatLab
We need at least 10 more requests to produce the answer.
0 / 10 have requested this problem solution
The more requests, the faster the answer.
for the function f(x)=cos(x) define within [0, pi], what will be the maximum error if f...
f(x) = cos(x) DEFINED [0, pi], what will be the maximum error if f(x) 10th and 15th degree interpolating polynomials in MATLAB
Compute the minimum square error for f(x) = |x|/pi (-pi<x<pi) and trigonometric polynomials if degree 1,2,3,4,5
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)...
3. Consider the function f(x) = cos(x) in the interval [0,8]. You are given the following 3 points of this function: 10.5403 2 -0.4161 6 0.9602 (a) (2 points) Calculate the quadratic Lagrange interpolating polynomial as the sum of the Lo(x), L1(x), L2(x) polynomials we defined in class. The final answer should be in the form P)a2 bx c, but with a, b, c known. DELIVERABLES: All your work in constructing the polynomial. This is to be done by hand...
Find the integral using matlab quad inbuilt for function (x^2)*cos(x)+3*sin(x)*tan(x) for 0 to pi/4
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...
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...
2. Since it is difficult to evaluate the integral / e dx exactly, we will approximate it using Maclaurin 0 polynomials (a) Determine Pa(x), the 4th degree Maclaurin polynomial of the integrand e (b) Obtain an upper bound on the error in the integrand for a in the range 0 S x 1/2, when the integrand is approximated by Pi (r) (c) Find an approximation to the original integral by integrating Pa(x) (d) Obtain an upper bound on the error...
Find T5(a): Taylor polynomial of degree 5 of the function f(x) = cos(x) at a = T5(x) = Using the Taylor Remainder Theorem, find all values of x for which this approximation is within 0.001774 of the right answer. Assume for simplicity that we limit ourselves to a < 1. nial of degree 5 of the function f(x) = cos(x) at a = 0.
Selected values for the complementary error function are: * 0.2000 0.4000 0.8000 1.0000 1.4000 erfc(x) 0.7773 0.5716 0.2579 0.1573 0.0477 Estimate erfc(0.88), using (a) second-order, (b) third-order, (c) fourth-order, interpolating polynomials. Determine the percentage relative error in each case. Exact value can be obtained with the MATLAB built-in function erfc.