Operation Manual

Math, Angle, and Test Operations 2-15
8202MATH.DOC TI-82, Chapter 2, English Bob Fedorisko Revised: 02/09/01 12:20 PM Printed:
02/09/01 12:36 PM Page 15 of 16
TEST TEST (Relational) Operations
To display the TEST TEST menu, press
y
:
. When you select from the menu,
the name is copied to the cursor location. These functions are valid for lists; they
return a list calculated on an element-by-element basis.
TEST TEST Menu
TEST LOGIC
True if:
1: =
Equal
2:
ƒ
Not equal to
3: >
Greater than
4:
Greater than or equal to
5: <
Less than
6:
Less than or equal to
=,
ƒ
, >,
, <,
Relational operators compare
valueA
and
valueB
and return
1
if the test is
true or
0
if the test is false.
valueA
and
valueB
can be numbers,
expressions, lists, or matrices (Chapter 10), but they must match in type
and dimension. Relational operators are often used in programs to control
program flow and in graphing to control the graph of a function over
specific values.
valueA
=
valueB
Using Tests
Relational operators are evaluated after mathematical functions according
to EOS rules (Chapter 1).
¦
The expression
2+2=2+3
returns
0
. The TI
.
82 does the addition first
because of EOS rules, and then it compares 4 to 5.
¦
The expression
2+(2=2)+3
returns
6
. The TI
.
82 first performs the
relational test because it is in parentheses, and then it adds 2, 1, and 3.