Casio fx-5800P Calculator User Manual


 
E-89
A
Example Calculation Using Base-
n
Specifi cation
Example: To perform the calculation 5
10
+ 5
16
, and display the result in binary
o
i
(BIN)
z
1
(BASE-N)
1
(d)
5+
z
1
(BASE-N)
2
(h)
5
E
k
Performing Calculations Using Logical Operations and
Negative Binary Values
Your calculator can perform 32-digit (32-bit) binary logical operations and negative value
calculations. All of the examples shown below are performed with binary (
i
(BIN)) set as
the default number base.
Note
Negative binary, octal, and hexadecimal values are produced by taking the binary two’s
complement and then returning the result to the original number base. With the decimal
number base, negative values are displayed with a minus sign.
A
Logical Product (and)
Returns the result of a bitwise product.
Example: 1010
2
and 1100
2
= 1000
2
1010
z
1
(BASE-N)
c
3
(and)
1100
E
A
Logical Sum (or)
Returns the result of a bitwise sum.
Example: 1011
2
or 11010
2
= 11011
2
1011
z
1
(BASE-N)
c
4
(or)
11010
E
A
Exclusive Logical Sum (xor)
Returns the result of a bitwise exclusive logical sum.
Example: 1010
2
xor 1100
2
= 110
2
1010
z
1
(BASE-N)
c
5
(xor)
1100
E
A
Exclusive Logical Sum Negation (xnor)
Returns the result of the negation of a bitwise exclusive logical sum.