Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please Use MATLAB CODE and Ouptut with answer. 4. Use the piecewise quadratic (k = 2) interpolating polynomial to interpolate f = sin(z), z [0,

Please Use MATLAB CODE and Ouptut with answer.

image text in transcribed

image text in transcribed

4. Use the piecewise quadratic (k = 2) interpolating polynomial to interpolate f = sin(z), z [0, 2 with , 160. For each m d=linspace (0, 2*pi, m). Write a for loop to calculate the error for m = 10, 20, 40, uniformly decompose the interval into m subintervals. (a) For piecewise interpolating polynomials, recall that the error satisfies the following estimate where h is the size of the subintervals. For this problem, write down the formula for the error bound in terms of k and m. (b) Generate the log-log plot for the error eh against the subinterval size h. In the same graph plot the error bound in 1) against h. What do you observei? c) Empirically calculate the order of accuracy and display the results. 4. Use the piecewise quadratic (k = 2) interpolating polynomial to interpolate f = sin(z), z [0, 2 with , 160. For each m d=linspace (0, 2*pi, m). Write a for loop to calculate the error for m = 10, 20, 40, uniformly decompose the interval into m subintervals. (a) For piecewise interpolating polynomials, recall that the error satisfies the following estimate where h is the size of the subintervals. For this problem, write down the formula for the error bound in terms of k and m. (b) Generate the log-log plot for the error eh against the subinterval size h. In the same graph plot the error bound in 1) against h. What do you observei? c) Empirically calculate the order of accuracy and display the results

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions

Question

46. GivenMX(t).2.3et.5e3t, ndp(x), E(X), V(X).

Answered: 1 week ago