Consider the integral sin da 2. Use Matlab to (a) find the numerical integration by composite trapezoid rule T(S) and co
Posted: Tue May 10, 2022 7:01 am
Consider the integral sin da 2. Use Matlab to (a) find the numerical integration by composite trapezoid rule T(S) and composite Simposon's rule S, () 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 and error(n) = 1 ſ * (2) de OCOL error(n) = 1 ° (x) dx – S.C.1 respectively. (e) calculate the ratio error(n) ratio(2n) error(2n) (d) calculate the order of approximation order(2n) = log2 (ratio(2n)) (e) summarize all your result from (a-d) into the following table. Tn() error(n) ration) order(n) S() error(n) ration) order(n) n 1 2 4 8 16 32