Operation Manual

Chapter 2: Math, Angle, and Test Operations 70
Relational operators are often used in programs to control program flow and in graphing to control
the graph of a function over specific values.
Using Tests
Relational operators are evaluated after mathematical functions according to EOS rules (Chapter 1).
The expression
2+2=2+3 returns 0.Addition is performed first because of EOS rules, and then 4 is
compared to 5.
The expression 2+(2=2)+3 returns 6. The relational test is performed first because it is in
parentheses, and then it adds 2, 1, and 3.
TEST LOGIC (Boolean) Operations
TEST LOGIC Menu
To display the TEST LOGIC menu, press y : ~.
Note: Use Catalog Help for more syntax help when needed.Select a menu item and then press à to go
to a syntax help editor (if the menu item is supported).
Boolean Operators
Boolean operators are often used in programs to control program flow and in graphing to control the
graph of the function over specific values. Values are interpreted as zero (false) or nonzero (true).
valueA=valueB
valueA
>valueB
valueA<valueB
valueA
ƒvalueB
valueA
valueB
valueAvalueB
This operator... Returns a 1 (true) if...
TEST LOGIC
1: and
Both values are nonzero (true).
2: or
At least one value is nonzero (true).
3: xor
Only one value is zero (false).
4: not(
The value is zero (false).