Dr. Kevin G. TeBeest
Always rework my examples BEFORE attempting the homework.
- You should have already worked Problem 1 in this problem set.
- Write this Maple code that uses the Trapezoidal rule to approximate a proper, definite integral.
You should write this code as soon as possible, because you will use this code as a template (model) for writing codes for other numeric integration methods.
- Now re-run your trapezoidal rule code using 12 subintervals. You should get the result worked in class.
- Use the trapezoidal rule code to approximate the integral of e–x2 on the interval [0,3] using:
- 10 subintervals Answer: 0.88620 20336 37399 79195
- 20 subintervals Answer: 0.88620 59753 41917 12340
- Use Richardson extrapolation to obtain an improved estimate.
Answer: 0.88620 72892 43422 90055- How much more accurate should the result in (b) be than the result in (a)?
- Play around with the code to approximate integrals of other functions f(x) on different intervals [a, b].