Consider the integral sin a da 2. Use Matlab to (a) find the numerical integration by composite trapezoid rule Tn(f) and
Posted: Thu May 12, 2022 2:00 pm
Consider the integral sin a da 2. Use Matlab to (a) find the numerical integration by composite trapezoid rule Tn(f) and composite Simposon's rule Sn(f) for different interval parti- tion, i.e. the subinterval size h is chosen as h = b. (b) calculate the error for each approximation, i.e. calculate = n a and error(n) = 1 8 ° f(a) dx – T.(191 error(n) = 1 * $(2) do – S-(0)1 fxdx Sn respectively. (c) calculate the ratio error(n) ratio(2n) = error(2n) (d) calculate the order of approximation order(2n) = log2 (ratio (2n))