The function v(t) is defined by the following table of unequallyspaced data:
t
3.5
5
6
7
8
8.5
9.3
v
5.5
7.5
8.5
8
6
7
7
a) Write an M-file that fits a 3rd order polynomial (cubic fit)to the data and uses the coefficients of the equation to obtainvalue of the integral. Print the integral calculated usinganalytical method in command window.
Note: You must automatically get the coefficients of the cubicequation in your program, manually integrate the equation by usingpen and paper, and calculate the value of the integral in yourprograming using built-in function.
b) Continue in the same M-file, write an anonymous function thatuses single application ofSimpson’s 3/8 rule to calculate theintegral for discrete data.
Note:
PayPal Gateway not configured
PayPal Gateway not configured