Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In order to do problem 4, problem 3 needs to be completed. Write a MATLAB function, called Newton_poly that inputs a set of data points
In order to do problem 4, problem 3 needs to be completed.
Write a MATLAB function, called Newton_poly that inputs a set of data points (x; y) =(datx, daty), a set x of numbers at which to interpolate, and outputs the polynomial interpolant, y, evaluated at x using Newton polynomial interpolation. Your function header should look something like: function y = Newton_poly(x, datx, daty) Use the code you developed in Problem 3 to interpolate the function f(x) = 1/1 + x^2 using the data points datx = -5:1:5. Interpolate at the points x=-5:0.001:5. Plot the results and compare them to what you got in problem 2(b). Explain why you get what you getStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started