Logical Operators (And, Or, Not, Xor); About Logical Operations - Casio FX-CG20 AU User Manual

Hide thumbs Also See for FX-CG20 AU:
Table of Contents

Advertisement

k Logical Operators (AND, OR, NOT, XOR)
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
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
A ≠ 0
A ≠ 0
A = 0
A = 0
• The following table shows the results produced by the NOT operation.
Value or Expression A
A ≠ 0
A = 0
What is the logical AND of A and B when A = 3 and B = 2?
A AND B = 1
Operation
3aav(A)w
2aal(B)w
av(A)K6(g)6(g)
4(LOGIC)1(And)al(B)w
Value or Expression B
B ≠ 0
B = 0
B ≠ 0
B = 0
NOT A
0
1
A AND B
1
0
0
0
2-24
[OPTN]-[LOGIC]
Display
A OR B
A XOR B
1
0
1
1
1
1
0
0
1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-cg10

Table of Contents