![Contents](../../images/content.png)
![Previous Chapter](../../images/backback.png)
![Start of Chapter](../../images/backstop.png)
![Previous Topic](../../images/back.png)
![Next Topic](../../images/fwd.png)
![Next Chapter](../../images/fwdfwd.png)
The following commands in Maple:
with( Student[Calculus1] ): ApproximateInt( 2*cos(4*x)*exp(-x), x = 0.0..5.0, method = trapezoid, output = animation, partition = 1, iterations = 10 );
produces the animation shown in Figure 1 (click to enlarge).
![](comptrap01.gif)
Figure 1. The composite-trapezoidal rule applied to 2 cos(4 x) e-x with 1, 2, 4, ..., 512 intervals.
For more help on approximating integrals or on the Student[Calculus1] package, enter:
?ApproximateInt ?Student,Calculus1
Copyright ©2005 by Douglas Wilhelm Harder. All rights reserved.