Evaluation via Maple's built-in numeric integrator
|
•
|
Control-drag the given definite integral.
|
•
|
Context Panel: 2-D Math≻Convert To≻Inert Form
|
•
|
Context Panel: Approximate≻10 (digits)
|
|
|
|
|
Maple's built-in Simpson's rule can be accessed either through the Approximate Integration tutor or through the ApproximateInt command in the Student Calculus1 package.
•
|
Figure 6.7.4(a) shows the state of the
tutor when Simpson's rule has been selected for approximating the given integral with .
|
•
|
With , Simpson's rule groups the nodes to form five subintervals with one node at the center of each such subinterval. If the Partition type were set to "Subintervals," then each of the ten subintervals would support a panel in which a new point at the center of the subinterval would be introduced. This would not be consistent with the formula for Simpson's rule given in Table 6.7.1.
|
|
|
Figure 6.7.4(a) Approximate Integration tutor
|
|
|
|
|
|
The use of the ApproximateInt command for obtaining this result is illustrated in Table 6.7.4(a).
Initialize
|
•
|
Tools≻Load Package: Student Calculus 1
|
|
Loading Student:-Calculus1
|
Context Panel: Assign to a Name≻
|
|
Apply the ApproximateInt command with output set to value, and the right endpoint a float
|
=
|
Table 6.7.4(a) Using the ApproximateInt command to implement Simpson's rule in Maple
|
|
|
Simpson's rule is implemented from first principles in Table 6.7.4(b). The integrand is defined as the function ; and the stepsize, as . The endpoints of the interval are written as floats so that the evaluation of the sum is numeric, and not symbolic.
•
|
Context Panel: Assign Function
|
|
|
•
|
Context Panel: Assign Name
|
|
|
•
|
Context Panel:
Evaluate and Display Inline
|
|
=
|
Table 6.7.4(b) Implementing Simpson's rule from first principles
|
|
|