Question: a) Compute In = x2 sin(x) dx for n = 2, 4, 10, 20, 50, and 100 using Newton-Cotes quadrature. b) Compute the error, en

a) Compute In = x2 sin(x) dx for n = 2, 4, 10, 20, 50, and 100 using Newton-Cotes quadrature. b) Compute the error, en = I - In, for each n, given that the exact solution to the definite integral is I = 12 - 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
