32 Chapter 2: Math Operations
7302ENG.DOC CH2 Math Operations, English Julie Hewlett Revised: 07/29/98 11:58 AM Printed: 05/19/99 8:58
AM Page 32 of 32
Test Operations Test Operations -
t
The two types of test operations included in the Text editor
are relational operators (=, , >, , <, and ) and logic (Boolean)
operators (and and or).
Both relational and logic operators often are used in programs
to control program flow and in graphing to control the graph
as a function over specific values.

Relational Operators

Relational operators compare conditionA and conditionB and
return 1 if the conditional statement is true. They return 0 if
the conditional statement is false. conditionA and conditionB
can be real numbers, expressions, or lists.
If both conditions are lists, they must have the same number
of elements. If one condition is a list and the other a non-list,
the non-list is compared with each element of the list, and a
list is returned.
Test operations are frequently used in programs.
conditionA relational_operator conditionB
Relational operators are evaluated after mathematical
functions according to EOS rules (Appendix B: Reference
Information). Therefore, for 2+2=2+3, the TI-73 returns 0. It
compares 4 with 5 and returns 0, because the operation is
false. For 2+(2=2)+3, the TI-73 returns 6. The relational test in
parentheses returns 1, because the operation is true. Then it
adds 2+(1)+3.