Calculator User Manual

222
Chapter 16: Programming
16PROG.DOC TI-86, Chap 16, US English Bob Fedorisko Revised: 02/13/01 2:36 PM Printed: 02/13/01 3:04 PM Page 222 of 1616PROG.DOC TI-86, Chap 16, US English Bob Fedorisko Revised: 02/13/01 2:36 PM Printed: 02/13/01 3:04 PM Page 222 of 1616PROG.DOC TI-86, Chap 16, US English Bob Fedorisko Revised: 02/13/01 2:36 PM Printed: 02/13/01 3:04 PM Page 222 of 16
PROGRAM:FUNCTABL
:Func:Fix 2:FnOff:PlO
ff
:y1=.6 x cos x
:ClLCD
:Eq4St(y1,STRING)
:Outpt(1,1,"y1=")
:Outpt(1,4,STRING)
:Outpt(8,1,"PRESS ENT
ER")
:Pause
:ClLCD
:y2=der1(y1,x,x)
:y3=der2(y1,x,x)
:DispT
:GrStl(1,1):GrStl(2,2
):GrStl(3,7)
:2
xRes
:ZTrig
:Trace
The name of the program
Set graphing and decimal modes (mode screen); turn off
functions (
GRAPH
VARS
menu) and plots (
STAT
PLOT
menu)
Define the function (assignment statement)
Clear the home screen (
PRGM
I
à
O
menu)
Convert
y1
into the string variable
STRING
(
STRNG
menu)
Display
y1=
at row 1, column 1 (
PRGM
I
à
O
menu)
Display value stored to
STRING
at row 1, col. 4 (
PRGM
I
à
O
menu)
Display
PRESS ENTER
at line 8, column 1 (
PRGM
I
à
O
menu)
Pause the program (
PRGM
CTL
menu)
Clear the home screen (
PRGM
I
à
O
menu)
Define
y2
as the first derivative of
y1
(
CALC
menu)
Define
y3
as the second derivative of
y1
(
CALC
menu)
Display the table (
PRGM
I
à
O
menu)
Set graph styles for
y1
,
y2
, and
y3
(
PRGM
CTL
menu)
Store
2
to the window variable
xRes
(
GRAPH WIND
menu)
Set the viewing window variables (
GRAPH
ZOOM
menu)
Display the graph, activate trace cursor, and pause (
GRAPH
menu)
Breaking (Interrupting) a Program
To break (interrupt) the program, press
^
. The
ERROR 06 BREAK
menu is displayed.
To display the program editor where the interruption occurred, select
GOTO
(
&
).
To return to the home screen, select
QUIT
(
*
).