Académique Documents
Professionnel Documents
Culture Documents
Select the command you need from the appropriate menu. After typing each command, press the ENTER key.
(You may also stay on the same line by typing a colon : (ALPHA .)
Commands:
:Prompt A,B,N
:A->X
:0->S
:1->I
:(B-A)/N->H
:Lbl P
:S+Y1*H->S
:X+H->X
:IS>(I,N)
:Goto P
:Disp "LSUM",S
" is ALPHA +
Ending: After pressing the ENTER key for the last command, press the QUIT (2nd MODE) key.
Running the program: First you have to type in the expression for the function you want to sum. Press the Y=
key (under screen) and enter your function as Y1. Use the [X,T,theta] key for your variable. As a test, put in xcubed, i.e. [X,T,theta], then ^, then 3, then ENTER. Then press QUIT. Now to run the sum, press PRGM, select
EXEC, and select LEFTSUM (It is selected automatically if it is the only program you have.) The screen will
display a prompt pgrmLEFTSUM. press ENTER. Enter the A, B, N you want at the question mark (?) prompts.
Some trouble shooting: When typing in the program, be sure to use the STO key as above , and not the equality
(=) key!!
Check: For Y1=f(x)=x^3, lower limit 1, upper limit 3, and N = 100, left-hand sum should be 19.7408.
Exercise: Rewrite this program to give right-hand sums.
RIGHT HAND SUMS AND THE TRAPEZOID RULE
Add these instructions to the end of the program:
:A->X
:S-Y1*H->R
:B->X
:R+Y1*H->R
:Disp "RSUM",R
:(S+R)/2->T
:Disp "TRAP",T
Check: For Y1=f(X)=sin X, lower limit 0, upper limit pi/2, and N = 10, LSUM = .91940317, RSUM =
1.076482803, TRAP = .9979429864.
Prompt A,B,N
iPart ((N+1)/2)->M
2*M->N
(B-A)/N->H
A->X
Y1->S
FOR(I,0,M-1,1)
S+4*Y1->S
X+H->X
S+2*Y1->S
End
S-Y1->S
S*H/3->R
Ending: After pressing the ENTER key for the last command, Press the QUIT ("2nd" "MODE") key.
Running the program: First you have to type in the expression for the function you want to sum. Press the Y= key (under
screen) and enter your function as Y1. Use the [X,T,theta] key for your variable. As a test, put in x to the 4th, i.e.
[X,T,theta], then "^", then 4, then ENTER. Then press QUIT. Now to run the sum, press PRGM, select EXEC, and select
SIMPSON (If that's what you called it.) The screen will display a prompt pgrmSIMPSON. press ENTER. Enter the A, B, N
you want at the question mark (?) prompts.
Check: For Y1=f(x)= x^4, lower limit A = 0, upper limit B = 1, and N = 4, Simpson sum should be: .2005208333
Remark: To run the program again you can type ENTER just after it displays the answer, and it will prompt you for new A,
B and N.
:Prompt A,B,Y,N
:(B-A)/N -> H
:A -> X
:1 -> I
:Lbl P
:Y + Y3*H -> Y
:X + H -> X
:IS>(I,N)
:Goto P
:Disp Y
To finish keying the program hit QUIT (2nd MODE). To run it, enter the expression for f(X,Y) in the Y3 position (use the Y=
key). Then QUIT to get back to the main screen, PGRM and select EXEC EULER from the menu.
Check: Enter Y in Y3, so the differential equation in question is Y'= Y, with solution Y = C exp(X). Run the
program with A=0, B=1, Y=1, N=10. The result should be 2.59374246.
Exercise: Show that if f(X,Y) (the expression entered in Y3) is a function of X alone, then the number this
program gives with initial value Y=0 is the left-hand sum approximation to the integral of f from A to B with N
equal subdivisions.
The program treats Y'' + c1Y' + c0Y = 0 as a set of two coupled first-order equations:
Y' = V
V' = -c1V - c0Y
The function -c1V - c0Y is stored in the Y= register as Y3.
For a readable display, you must first set the window size with Xmin = A, Xmax = B, and Ymin and Ymax
appropriate for your problem.
To key in the program, start from the main screen (hit QUIT if you are somewhere else), hit PGRM and select
NEW from the menu. The calculator goes into Alpha-lock mode and prompts you for the Name of the new
program. Type in EULER2, for example, and hit ENTER. Calculator will move to a new line and display a
colon : which means the beginning of an instrction. Hit ENTER after each instruction has been keyed in.
Calculator will move to a new line and display the colon.
Program
:ClrDraw
:FnOff
:Prompt A,B,Y,V,N
:(B-A)/N -> H
:A -> X
:1 -> I
:Lbl P
:Y + V*H -> Y
:V + Y3*H -> V
:X+H->X
:X->K:Y->L
:Pt-On(X,Y)
:K->X:L->Y
:IS>(I,N)
:Goto P
:DispGraph
To finish keying the program hit QUIT (2nd MODE). To run it, enter the expression for -c1V - c0Y in the Y3 position (use
the Y= key). Then QUIT to get back to the main screen, PGRM and select EXEC EULER2 from the menu.
Check: Enter -4Y in Y3, so the differential equation in question is Y''+ 4Y = 0, with general solution Y = A
cos(2X) + B sin(2X). Prepare the window with Xmin = 0, Xmax = 10, and Ymin = -1.5, Ymax = 1.5 Run the
program with A=0, B=10, Y=1, V=0, N=100. The window should display a good likeness of Y = cos(2X). Run
it with A=0, B=10, Y=0, V=1, N=100. The window should display a good likeness of Y = (1/2)sin(2X).
Note: This program can also be used for more general second-order equations.
Select the command you need from the appropriate menu. After typing each command, press the ENTER key.
(You may also stay on the same line by typing a colon : (ALPHA .)
When navigating menus, use CLEAR to return to where you were.
This program is more elaborate than the others because it must link the computational and graphing operations
of the calculator.
COMMAND:
:FnOff
:Goto Q
:U+H->X
:IS>(I,12)
:Goto P
Ending: After pressing the ENTER key for the last command, press the EXIT key.
Running the program: First enter the function giving the slope: Press Y= (below the screen) then type it in on
the Y1 line as a function of the two variables X (use [X,T.theta]) and Y. (e.g. X+Y). Then QUIT (2nd MODE)
to return to home screen. Now PRGM, select SLOPE from the EXEC menu, ENTER. Enter numbers at the
question mark (?) prompts.
Check: For Y1 = -X/Y get circles centered at the origin. The circles will be round if
your screen parameters have the correct aspect ratio.
Check: For Y1 = X+Y and window [-3,3]x[-2,2], calculator screen should have the
image shown on the right.
Select the command you need from the appropriate menu. After typing each command, press the ENTER key.
(You may also stay on the same line by typing a colon ":", which is ALPHA . ).
To enter or access matrices or matrix operations, press the MATRX key, then select one of the three menus:
We will also need some logical operations within this program. You can access these by pressing the TEST (=
2nd MATH) key, and then selecting one of the menus
Commands:
:Prompt M,N,R
:{M,N}->dim[E]
:Prompt [E]
:1->I
:1->J
:While(I<=M and J<=N)
Ending: After pressing the ENTER key for the last command, press the QUIT (2nd MODE) key.
Running the program: To run the program, press PRGM, select EXEC, and then RREF, or the name that you
choose for this program (it is selected automatically if it is the only program you have.) The screen will display
a prompt "prgmRREF". Press ENTER. Enter the M, N, R you want at the question mark (?) prompts. Here, M is
the number of rows and N the number of columns that the matrix you want to row reduce has; R specifies the
number of decimal places to which your result should be correct, and can be any integer between 1 and 9 (one
usually will choose the maximum, R=9; see remarks below!).
Next, the program will ask you for the matrix [E] that you want to row reduce. You can enter [E] either directly,
by using the "[" and "]" keys (= 2nd x and 2nd -, respectively) as follows: the input
[[1,2,3][4,5,6]]
2
5
3 ]
6 ]
Alternatively, you may enter the matrix under some other name in the (MATRX) EDIT menu, say as matrix
[A], and then just select (MATRX) NAMES 1 at the "[E]=?" prompt. The latter method is recommended, since
otherwise the input-matrix will be "lost" after the program is executed.
In any case, you have to make sure that the dimensions of the matrix you enter coincide with the numbers
M of rows and N of columns that you specified at the start of the program! Otherwise, the program will be
interrupted and an error message displayed if your matrix is too small, or you will not obtain the reduced row
echelon form of the matrix if it is too big.
Pressing ENTER after entering [E] starts the program, which after a little while will return the reduced row
echelon form of the matrix, but only display the first columns and rows (of big matrices). If you want to see the
other rows and columns, just select (MATRX) NAMES 5, and use the cursor keys to move within the matrix.
Remarks on rounding errors: Unfortunately, the Gauss Jordan Elimination Algorithm is not stable with respect
to rounding errors; that means that accumulated rounding errors do not only change the numbers of the output a
little, but they can in fact dramatically change the outcome: Instead of e.g. infinitely many solutions (with "free
parameters"), you might seemingly obtain a "unique solution"! The boldfaced parts of the program above are
included to minimize the effect of these rounding errors, but they cannot completely eliminate them. If you are
in doubt that you got the correct type of solution, run the program again, with a smaller value of R. However,
for most matrices the maximum value of R=9 will give you the correct outcome.
If you always want to run the program with R=9, delele ",R" from the first line, and add the line ":9->R" as a
new second line.
If you want to run the program without these rounding procedures, just delete all boldfaced parts. If you want
to have both options, copy the program under another name (like "XREF" or so; please see the Manual
Guidebook of your TI-82 on how to copy a program), and just delete all boldfaced parts in the second one.
Check: The 3x6 matrix
[A] =
[[ 3
[ 7
[-4
6
14
-8
9
21
-12
5
9
5
25
53
-10
53 ]
105 ]
11 ]]
[[ 1
[ 0
[ 0
2
0
0
3
0
0
0
1
0
5
2
0
6 ]
7 ]
0 ]]
which is the exact reduced row echelon form of [A]. However, if you run the modified program without the
boldfaced parts, you will get the incorrect result
[E] =
[[ 1
[ 0
[ 0
2
0
0
3
0
0
0
1
0
0
0
1
-37.75 ]
-10.5 ]
8.75 ]]
Note that if this matrix was the augmented matrix of a system of 3 linear equations in 5 variables, the the correct
solution will have 3 free parameters, the incorrect one only 2!