TEST (Relational) Operations
TEST Menu
=, ƒ,
>, ‚,
<,
Using Tests
To display the
TEST
This operator...
TEST LOGIC
1: =
2: ƒ
3: >
4: ‚
5: <
6:
Relational operators compare valueA and valueB and
return
if the test is true or
1
valueB can be real numbers, expressions, or lists. For
and
only, valueA and valueB also can be matrices or
ƒ
complex numbers. If valueA and valueB are matrices, both
must have the same dimensions.
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
=
valueA
valueB
>
valueA
valueB
<
Relational operators are evaluated after mathematical
functions according to EOS rules (Chapter 1).
The expression
the addition first because of EOS rules, and then it
compares 4 to 5.
The expression
the relational test first because it is in parentheses, and
then it adds 2, 1, and 3.
Math, Angle, and Test Operations 2-25
menu, press y [
Returns 1 (true) if...
Equal
Not equal to
Greater than
Greater than or equal to
Less than
Less than or equal to
if the test is false. valueA and
0
valueA
valueB
ƒ
valueA
valueB
‚
valueA
valueB
returns
. The TI-83 performs
2+2=2+3
0
returns
2+(2=2)+3
].
TEST
=
. The TI-83 performs
6