![Casio FX-CG10 User Manual Download Page 73](http://html1.mh-extra.com/html/casio/fx-cg10/fx-cg10_user-manual_2568313073.webp)
2-24
k
Logical Operators (AND, OR, NOT, XOR)
[OPTN]
-
[LOGIC]
The logical operator menu provides a selection of logical operators.
• {
And
}
/
{
Or
}
/
{
Not
}
/
{
Xor
} ... {logical AND}/{logical OR}/{logical NOT}/{logical XOR}
• Be sure to specify Comp for Mode in the Setup screen.
Example
What is the logical AND of A and B when A = 3 and B = 2?
A AND B = 1
Operation
Display
3
a
av
(A)
w
2
a
al
(B)
w
av
(A)
K
6
(
g
)
6
(
g
)
4
(LOGIC)
1
(And)
al
(B)
w
1
u
About Logical Operations
• A logical operation always produces either 0 or 1 as its result.
• The following table shows all of possible results that can be produced by AND, OR and XOR
operations.
Value or Expression A
Value or Expression B
A AND B
A OR B
A XOR B
A
≠
0
B
≠
0
1
1
0
A
≠
0
B = 0
0
1
1
A = 0
B
≠
0
0
1
1
A = 0
B = 0
0
0
0
• The following table shows the results produced by the NOT operation.
Value or Expression A
NOT A
A
≠
0
0
A = 0
1
Summary of Contents for FX-CG10
Page 555: ...E CON3 Application English...