Question: 6. The gamma function is defined by It is known that for integer numbers the function has the value (We define 0!-1.) Thus, for example,

 6. The gamma function is defined by It is known that

6. The gamma function is defined by It is known that for integer numbers the function has the value (We define 0!-1.) Thus, for example, (1, 1),(2,1),(3,2),(4,6),(5,24) can be used as data (a) Write a MATLAB script that computes the polynomial interpolant of degree four that (b) Write a program that computes a cubic spline to interpolate the same data. (You may points for an interpolating polynomial. passes through the above five data points. use MATLAB's spline.) (c) Plot the two interpolants you found on the same graph, along with a plot of the gamma function itself, which can be produced using the MATLAB command gamma. (d) Plot the errors in the two interpolants on the same graph. What are your observations

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!