Topic 13.4: Newton-Cotes Rules (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( cos(x), x = 0.0..1.5, method = trapezoid, output = plot, partition = 1 );

produces the plot shown in Figure 1.

Figure 1. The trapezoidal rule applied to integrating cos(x) on [0, 1.5].

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.