
Page 21-44
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
Meaning
Example
____________________________________________________
==
“is equal to”
‘x==2’
≠
“is not equal to”
‘3
≠
2’
<
“is less than”
‘m<n’
>
“is greater than” ‘10>a’
≥
“is greater than or equal to”
‘p
≥
q’
≤
“is less than or equal to”
‘7
≤
12’
_____________________________________________________
All of the operators, except == (which can be created by typing
‚Å
‚Å
), are available in the keyboard. They are also available in
„°
@)TEST@
.
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 (
µ
). Examples:
‘2<10’
µ
, result: 1. (true)
‘2>10’
µ
, result: 0. (false)
In the next example it is assumed that the variable m is not initialized (it has
not been given a numerical value):
‘2==m’
µ
, result: ‘2==m’
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:
„°
@)TEST@
L
.
Содержание 49g+
Страница 1: ...hp 49g graphing calculator user s guide H Edition 4 HP part number F2228 90006 ...
Страница 197: ...Page 5 30 LIN LNCOLLECT POWEREXPAND SIMPLIFY ...
Страница 377: ...Page 11 55 Function KER Function MKISOM ...
Страница 457: ...Page 13 26 In the right hand side figure above we are using the line editor to see the series expansion in detail ...
Страница 775: ...Page 26 10 the location of the backup battery in the top compartment at the back of the calculator ...
Страница 838: ...Page L 5 ...