A Riemann-Sum Program TI-83 and TI-83 Plus Calculators
A Riemann-Sum Program TI-83 and TI-83 Plus Calculators
A Riemann-Sum Program TI-83 and TI-83 Plus Calculators
the values of the Riemann sums. The user enters a = A, b = B, the number N of subintervals, and a
number T between 0 and 1. The rectangles are of equal widths, and the program gives the left Riemann
sum if T = 0, the right Riemann sum if T = 1, and the midpoint Riemann sum if T = 0.5.
1.
PROGRAM: RIEMANN
13.
: For(J, 1, N, 1)
2.
: ClrDraw
14.
: A + (J 1)D U
3.
: FnOff
15.
: U + TD X
4.
: Fn0n 1
16.
: Y1 W
5.
17.
: Line(U, , U, W )
6.
: Prompt A, B, N
18.
: Line(U, W, U + D, W )
7.
19.
: Line(U + D, W, U + D, )
8.
20.
: S + DW S
9.
21.
: End
10.
: Input T
22.
: Pause
11.
: (B A)/N D
23.
12.
:S
24.
: Disp S
The symbol in lines 7, 9, 12, 17, and 19 of the program denotes zero. Be careful to use and
not (-) for the subtraction in lines 11 and 14.
(a) Use the Riemann-sum program to calculate the mid-point Riemann sums for
x2 dx corresponding to the partition of [0, 1] into 5, 10, 20, 50, and 100 equal
0
subintervals. (b) Use the results to predict the exact value of the integral.
Solution
1
3,
10
20
50
100
Riemann sum
0.33
0.3325
0.333125
0.3333
0.333325
y = x2
y = x2
y = x2
FIGURE 1
FIGURE 2
FIGURE 3
and put the calculator in function mode (select <Func> on line 4) if necessary. Press 2nd
QUIT to return to the home screen, press PRGM I I for <NEW>, press ENTER , and execute the
following line-by-line instructions to enter the program.
MODE
To make a correction, move the cursor to the error and use INS and DEL as needed. To return to
the program from other screens, press CLEAR or follow the steps in the previous paragraph. To interrupt
the running of the program, press ON and then 2 for QUIT.
To delete a program, press 2nd
the program, and press ENTER 2nd
MEM
QUIT
1.
Press R I E M A N
title identifies the program.
2.
Press
2nd
3.
Press
VARS
ENTER
4.
Press
VARS
5.
Press
PRGM
DRAW
X, T, , n
<VARS> key.
3
)
ENTER
for Delete,
ENTER
ENTER
to select Y1 .
ENTER
2nd
. The space
A-LOCK
VARS
VARS
is the
6.
7.
Press
L
8.
Press
R
9.
PRGM
F
PRGM
Press
ALPHA
ENTER
3
ALPHA
ENTER
I
D
2nd
TEST
2nd
A-LOCK
ENTER
ALPHA
2nd
TEST
2nd
ALPHA
2nd
TEST
ENTER
A-LOCK
ALPHA
ALPHA
PRGM
2nd
A-LOCK
10.
Press
11.
12.
Press STOI ALPHA S ENTER . The Riemann sum is stored as S during the calculations.
Here S is set equal to 0 to erase its previous value.
13.
14.
15.
16.
ENTER
17.
ALPHA
18.
Press
ALPHA
19.
2nd
)
Press
D
20.
PRGM
DRAW
ENTER
2nd
ALPHA
ALPHA
ALPHA
STOI
ALPHA
STOI
ALPHA
ENTER
ENTER
. The
. U is
ALPHA
ALPHA
ALPHA
ENTER
ALPHA
ALPHA
. The left
ALPHA
ALPHA
DRAW
)
ENTER
ALPHA
ALPHA
Press ALPHA S + ALPHA D ALPHA W STOI ALPHA S ENTER . The area of the
rectangle is added to S if W is positive and is subtracted from S if W is negative.
21.
Press
PRGM
ENTER
22.
Press
PRGM
ENTER
23.
24.
Press
PRGM
Press
2nd
QUIT
ALPHA
ENTER
2nd
TEST
ALPHA
ENTER
. The