This method uses the trapezoidal rule and gains precision step wise by halving h and adding an

Question:

This method uses the trapezoidal rule and gains precision step wise by halving h and adding an error estimate. Do this for the integral of f(x) = e-xfrom x = 0 to x = 2 with TOL = 10-3, as follows.

Apply the trapezoidal rule (2) with h = 2 (hence n = 1) to get an approximation J11. Halve h and use (2) to get J21 and an error estimate

(J21 – J11). 22 – 1 €21

If |ϵ21| ‰¤ TOL, stop. The result is J22 = J21 + ϵ21.

Show that ϵ21 = 0.066596, hence |ϵ21| > TOL and go on. Use (2) with h/4 to get J31 and add to it the error estimate ϵ31 = 1/3(J31 - J21) to get the better J32 = J31 + ϵ31. Calculate

€32 24 (J32 – J22) 15 (J32 - J22).

If |ϵ32| ‰¤ TOL, stop. The result is J33 = J32 + ϵ32. (Why does 24 = 16 come in?) Show that we obtain ϵ32 = 0.000266, so that we can stop. Arrange J- and ϵ-values in a kind of €œdifference table.€


If |ϵ32| were greater than TOL, you would have to go on and calculate in the next step J41 from (2) with then h = 1/4; then

where 63 = 26 - 1. (How does this come in?)

Apply the Romberg method to the integral of f(x) = 1/4Ï€x4cos 1/4Ï€x from x = 0 to 2 with TOL = 10-4.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: