In Matlab code, calculate the numerical integral of thequadratic function f(x) = 3x^2 − 2x + 1 in the region x ∈ [−1,1]
a) using the Simpson’s 1/3 method with N = 3, 5, 7, …, 97points and plot the difference between the numerical result withthe exact solution;
b) using the Simpson’s 3/8 method with N = 4, 7, 10, …, 97points and plot in the same figure as Part a) the differencebetween the numerical result with the exact solution
; c) Explain in a comment why the Simpson’s 1/3 method leads tothe same error performance as the Simpson’s 3/8 method despite itis
PayPal Gateway not configured
PayPal Gateway not configured