2. Calculate following integral, b=6 Ĵ (x4 cos x - 2) dx = 435.81767401 a=2 by following methods. (Consider in each case
Posted: Thu May 05, 2022 7:48 pm
2. Calculate following integral, b=6 Ĵ (x4 cos x - 2) dx = 435.81767401 a=2 by following methods. (Consider in each case, number of points n contains initial (a) and end points (b). Also, points are selected as equidistantly.) b) Simpson's 1/3 rule. (15p) i) Write MATLAB code performing integration by Simpson's 1/3 rule. Perform the calculation for n = 2k + 1; k = 1,2,...,10. Obtain a table containing n, In, |In — Iexact| where In is calculated integral for n point, and Iexact is exact value of the integral given in the question.