Download Print this page

HP 35s Instruction Manual page 3

Using the logic functions
Hide thumbs Also See for HP 35s:

Advertisement

hp calculators
HP 35s Using the LOGIC functions
The NOT function creates a new binary number where each bit position's value has been "flipped", with each 1 becoming
a 0 and each 0 becoming a 1. This is referred to as the one's complement of the argument.
The NAND function creates a new binary number from two input binary numbers where each bit position's value is based
upon a NOT (x AND y). In essence, it returns a bit of one unless both bit positions in the two input binary numbers are
ones.
The NOR function creates a new binary number from two input binary numbers where each bit position's value is based
upon a NOT (x OR y). In essence, it returns a bit of one ONLY when both of the bit positions in the two input binary
numbers are zeroes.
Note: Numbers entered into the HP 35s are assumed to be decimal numbers, regardless of the base mode, unless the
proper suffix of "b", "o", or "h" is supplied. These suffix characters are found in the BASE menu as choices 5 through 8,
and are shown below in Figure 1. It is not necessary to enter the "d" for decimal numbers, except for clarity in a program.
Practice manipulating binary numbers
Example 1: Evaluate NOT(#4567 d). Make sure the HP 35s is in DEC mode to enter the base 10 number.
Solution:
In RPN mode, press: º
In algebraic mode, press: º
Answer:
-4568 base 10. Figure 4 shows the result in RPN mode while figure 5 shows the result in algebraic mode.
Example 2: Perform an OR on these two binary numbers: #70114 o and #57610 o. Make sure the calculator is in
OCTAL mode to enter the base 8 numbers.
Solution:
º
In RPN mode, press:
hp calculators
then press
then press ¹>
º
Ï
Figure 3
¹>
Figure 4
Figure 5
º
- 3 -
Ï
¹>
HP 35s Using the LOGIC functions - Version 1.1

Advertisement

loading