Download Print this page

HP -27S Owner's Manual page 106

Scientific

Advertisement

Table 5-5. Evaluating
Logical
Expressions
Expression
When
A
True
B
True
When
A
True
B
False
When
A
False
B
True
When
A
False
B
False
AANDB
AORB
AXORB
NOT
A
NOT
B
True
True
False
False
False
False
True
True
False
True
False
True
True
True
False
False
False
False
True
True
Here are
several
additional
examples
of
equations
using the
IF
function:
Equation:
B =IF (r(H
HHB
Fl{=lF:exH=6:IxH+18)+[
lnterpretation:
If
7
wise,B:3xA+10+C.
Equation:
uffLUE=F I
Rsr +I
F
(
H0T
F
I
Rsr=E
:
1+F
I
Rsr
:
E
)
lnterpretation:
If
FIRST
+
0, then VALUE
:
FIRST
+
(1
.
FIRST).
If
FIRST
:
A,
then VALUE
:
FIRST.
Equation:
T=l,lx I
F
(
H=S H0R
E=E
:
H
+E
:
ffxg
I
lnterpretation: T
: w x
(A
+
B)
if A
or
B,
but not both,
equals
0.
Otherwise,
T
:
W
x A x
B.
In
other
words:
When
A:
0
and
B
*
0,
T
:
W
x
B
WhenA*0andB:0,T:WxA
WhenA-0andB:0,T-0
When
A
*
O
and
B
+
O,
T
:
W X
A
X
B
r04
5: The Equation
Solver

Advertisement

loading