Question: Using matlab Cody problems: HW7_3 This problem uses an interpolating polynomial to estimate area under a curve. Fit interpolating polynomial to the following set of

Using matlab

Using matlab Cody problems: HW7_3 This problem uses an interpolating polynomial to

Cody problems: HW7_3 This problem uses an interpolating polynomial to estimate area under a curve. Fit interpolating polynomial to the following set of points. These points are the actual values of f(x) = sin(ex-2) 0.4 0.8 y |-0.8415 |-0.4866 | 0.2236 | 0.9687 | 0.1874 a) b) Plot the real function f(x) and the interpolating polynomial, using different colors. Include the data set. We wish to estimate the area under the curve, but this function is difficult to integrate. Compute the exact integral of the interpolating polynomial over the domain, and store the result into Iest. (Do the integration by hand, but have MATLAB compute the integral). Print the results using fprintf Paste the script file into Cody, which will check the correctness of Iest. Do you believe that this is a good estimate? c) d)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!