Logical Operators - HP 49g+ User Manual

Graphing calculator
Hide thumbs Also See for 49g+:
Table of Contents

Advertisement

statement can be true (represented by the numerical value of 1. in the
calculator), or false (represented by the numerical value of 0. in the calculator).
The relational operators available for programming the calculator are:
____________________________________________________
Operator
____________________________________________________
==
<
>
_____________________________________________________
All of the operators, except == (which can be created by typing ‚Å
‚Å ), are available in the keyboard. They are also available in
„° @) T EST@.
Two numbers, variables, or algebraics connected by a relational operator
form a logical expression that can take value of true (1.), false (0.), or could
simply not be evaluated. To determine whether a logical statement is true or
not, place the statement in stack level 1, and press EVAL (
In the next example it is assumed that the variable m is not initialized (it has
not been given a numerical value):
The fact that the result from evaluating the statement is the same original
statement indicates that the statement cannot be evaluated uniquely.

Logical operators

Logical operators are logical particles that are used to join or modify simple
logical statements. The logical operators available in the calculator can be
easily accessed through the keystroke sequence: „° @) T EST@ L.
Meaning
"is equal to"
"is not equal to"
"is less than"
"is greater than"
"is greater than or equal to"
"is less than or equal to"
µ
'2<10'
, result: 1. (true)
µ
'2>10'
, result: 0. (false)
µ
'2==m'
, result: '2==m'
Example
'x==2'
'3 ≠ 2'
'm<n'
'10>a'
'p ≥ q'
'7≤12'
µ
). Examples:
Page 21-44

Advertisement

Table of Contents
loading

Table of Contents