Calculator User Manual

320
Chapter 20: A to Z Function and Instruction Reference
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 320 of 118
Menu(
program editor
CTL menu
Menu(
item#
,"
title1
",
label1
[
,
...
,
item#
,"
title15
",
label15
]
)
Generates a menu of up to 15 items during program
execution. Menus are displayed as three groups of five
items. For each item:
item#
— integer from 1 through 15 that identifies this
item’s position in the menu.
"
title
"
— text string that will be displayed for this
item on the menu. Typically, use from 1 through 5
characters; additional characters may not be seen on
the menu.
label
— valid label to which program execution will
branch when the user selects this item.
Program segment:
©
:Lbl A
:Input "Radius:",RADIUS
:Disp "Area is:",
p
¹
RADIUS
2
:Menu(1,"Again",A,5,"Stop",B)
:Lbl B
:Disp "The End"
Example when executed:
min(
MATH NUM menu
min(
numberA
,
numberB
)
Returns the smaller of two real or complex numbers.
min(3,
L
5)
b
L
5
min(
L
5.2,
L
5.3)
b
L
5.3
min(5,2+2)
b
4
min(
list
)
Returns the smallest element in
list
.
min({1,3,
L
5})
b
L
5
min(
listA
,
listB
)
Returns a list in which each element is the smaller of
the corresponding elements in
listA
and
listB
.
min({1,2,3},{3,2,1})
b
{1 2 1}
mod(
MATH NUM menu
mod(
numberA
,
numberB
)
Returns
numberA
modulo
numberB
. The arguments
must be real.
mod(7,0)
b
7
mod(7,3)
b
1
mod(
L
7,3)
b
2
mod(7,
L
3)
b
L
2
mod(
L
7,
L
3)
b
L
1