Nathan Sokalski wrote:
"As you may know, there is no command to visually display trapezoid() like
there is for leftsum, rightsum, and middlesum. I decided to write my own,
and I have been able to make it work for some functions, but not others."
I, too, have worked on this, but from a different approach, using the
Plottools library so kindly unwrapped for me by Michael Monagan at his
Maple workshop at Simon Fraser University. This works nicely for positive
functions, For instance, try the following command:
for n in L do
for i from 1 to n do pol[i]:=polygon([[(i-1)*h,0],[(i-1)*h,f((i-1)
The list L can be edited to give whatever sequence of approximations one
wishes. This method does not work well when the curve intersects the axis,
but for curves with all positive values (or with all negative values), it
gives nice pictures and an dynamic sense of convergence.
I also have done similar animations for Simpson's Rule, for Arc Length, for
Area between curves, and for areas in Polar Coordinates. If there is
interest, I could post these as well.
Regards to all who seek to promote visual comprehension.
Mathematics & Statistics
University of Windsor