Calculator User Manual

Chapter 20: A to Z Function and Instruction Reference
311
20ATOZ.DOC TI-86, Chap 20, US English Bob Fedorisko Revised: 02/13/01 2:42 PM Printed: 02/13/01 3:05 PM Page 311 of 11820ATOZ.DOC TI-86, Chap 20, US English Bob Fedorisko Revised: 02/13/01 2:42 PM Printed: 02/13/01 3:05 PM Page 311 of 118
Lbl
program editor
CTL menu
Lbl
label
Creates a
label
of up to eight characters. A program can
use a
Goto
instruction to transfer control (branch) to a
specified label.
Program segment, assuming a correct
password has already been stored to the
password
variable:
©
:Lbl Start
:InpSt "Enter password:",PSW
:If PSW
ƒ
password
:Goto Start
:Disp "Welcome"
©
lcm(
MATH MISC menu
lcm(
integerA
,
integerB
)
Returns the least common multiple of two nonnegative
integers.
lcm(5,2)
b
10
lcm(6,9)
b
18
lcm(18,33)
b
198
LCust(
program editor
CTL menu
LCust(
item#
,"
title
"
[
,
item#
,"
title
",
...]
)
Loads (defines) the TI
N
86’s custom menu, which is
displayed when the user presses 9. The menu can
have up to 15 items, shown in three groups of five items.
For each
item#
/
title
pair:
item#
— integer from 1 through 15 that identifies the
item’s position in the menu. The item numbers must
be specified in order, but you can skip numbers.
"
title
"
— string with up to 8 characters (not counting
the quotes) that will be pasted to the current cursor
location when the item is selected. This can be a
variable name, expression, function name, program
name, or any text string.
Program segment:
©
:LCust(1,"t",2,"Q'1",3,"Q'2",4,"R
K",5,"Euler",6,"QI1",7,"QI2",8,"t
Min")
©
After executed and when the user presses
9
:
InpSt
stores input as a string,
so be sure to store a string t
o
the
password
variable.