Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

364 Chapter 5 Interpolation (and Curve Fitting) 12. The following data set was t

ID: 3144649 • Letter: 3

Question

364 Chapter 5 Interpolation (and Curve Fitting) 12. The following data set was taken from a polynomial of degree at most five. Find the polynomial. -2 -1 0 1 2 3 y 39 3 1 3 91 x 0 1.25 1.85 2.40 3.05 3.64 4.25 4.85 5.45 Determine the polynomial of degree at most eight (8) which interpolates this 13. Consider the data set 0 4 6 8 10 12 14 16 18 data. Over what range of z values would you feel comfortable using the interpo lating polynomial to approximate values of y? Explain. 14. A thermodynamics student needs the temperature of saturated steam under a pressure of 6.3 mega-Pascals (MPa

Explanation / Answer

Solution:

we use here polyfit(x,y,n) finds the coefficients of a polynomial p(x) of degree n that fits the y data by minimizing the sum of the squares of the deviations of the data from the model (least-squares fit).

Code:

Note:

It will give the polynomial coefficients in descending powers ( starting from 5 , 4 ,3 ,2, and 1 )

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote