INTAPP.82p
TI82 program to display Riemann sums.  Function, bounds, number of
variables, type of sum can all be customized.



This program is designed to demonstrate the various ways of doing
a Riemann summ.  It is useful in teaching the concept of the definite
integral.

The program asks the user to supply a function which is then stored in Y1.
The user is also asked for upper and lower bounds, number of subintervals,
and the method of sum desired.  The program computes a convenient window for

graphing, then draws the function along with the approximating rectangles
and computes the sum.  It should be noted that the program uses the min and
max functions to set the upper and lower bounds for the y range.  Since
these functions use a seed to find a local min and max, functions with
a local min or max in the designated x range may continue off the screen.

When running the program, the user is reminded that on the TI-82,
inputing a function through a program requires that the function
start with a double quote mark.

The function is stored in Y1.
The program uses the variables:
U, L, and N are the upper and lower limits of X, and the number of
subintervals respectively.
H and S are the width of a subinterval and the Riemann sum.
M is the midpoint of a subinterval.
I and Z are counters and dummy variables.

The program puts the calculator in function mode and turns off the
graphing of variables other than Y1.

This program is joint work of Paul Patterson and Mike May from
the Department of Mathematics and Computer Science at Saint Louis
University.  Send comments to:
patterso@sluvca.slu.edu
maymk@sluaxa.slu.edu
