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

Develop a function that creates an interpolated polynomial from a data set using

ID: 3682228 • Letter: D

Question

Develop a function that creates an interpolated polynomial from a data set using Newton's divided difference method and an m-file that calls this function and plots both the data and the fitted curve. Do not use any internal interpolation functions. Additionally, do not use any internal summing functions, i.e "sum". The function should take in three variables, a data set, (x, y), a variable indicating which order model the data should be fit to, and a variable indicating which data points should be used. The output argument should be the interpolated function. a. You may choose to output this as just coefficients or as the function An additional m-file should call the function and then plot the data and the interpolated curve. Present examples for zero through third order polynomials. Note that your code should also be able to create higher order polynomials.

Explanation / Answer

and