Topic 13.2: Composite-Trapezoidal Rule (Maple)

Contents Previous Chapter Start of Chapter Previous Topic Introduction Notes Theory HOWTO Examples Engineering Error Questions Matlab Maple Next Topic Next Chapter

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).

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.