Romberg Integration 3
Recall that the number of function evaluations used by the composite trapezoidal
rule and the composite Simpson’s rule is one more than the number of subintervals,
the number of function evaluations used by the composite midpoint rule is equal
to the number of subintervals, and the number of function evaluations used by the
composite two-point Gaussian quadrature rule is twice the number of subintervals.
Thus, to achieve an accuracy of 4.2399 ×10−11, the composite trapezoidal rule
would need 209826 function evaluations, the composite midpoint rule would need
148369 function evaluations, the composite Simpson’s rule would need 331 function
evaluations and the composite two-point Gaussian quadrature rule would need 298
function evaluations.
3. Romberg integration approximates the value of the integral
Zπ
0
sin xdx
with an error of 1.3207 ×10−12 using only 33 function evaluations. How many
function evaluations would be needed to achieve the same level of accuracy using
the composite trapezoidal rule, the composite midpoint rule, the composite
Simpson’s rule and the composite two-point Gaussian quadrature rule?
Let f(x) = sin x. Then
For the composite midpoint rule, the number of subintervals must satisfy
For the composite two-point Gaussian quadrature rule, the number of subintervals