Octal
Another scheme, sometimes used in computer programming, is the octal number system, so named
because it has eight symbols (according to our way of thinking), or 2
3
. Every digit is an element of
the set {0, 1, 2, 3, 4, 5, 6, 7}. This system is also known as base 8 or radix 8.
Hexadecimal
Another system used in computer work is the hexadecimal number system. It has 16 (2
4
) symbols.
These digits are the usual 0 through 9 plus six more, represented by A through F, the first six letters
of the alphabet. The digit set is {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F}. This system is some-
times called base 16 or radix 16.
Logic
Logic refers to the reasoning used by electronic machines. The term is also used in reference to the
circuits that make up digital devices and systems.
Boolean Algebra
Boolean algebra is a system of mathematical logic using the numbers 0 and 1 with the operations
AND (multiplication), OR (addition), and NOT (negation). Combinations of these operations are
NAND (NOT AND) and NOR (NOT OR). This peculiar form of mathematical logic, which gets
its name from the nineteenth-century British mathematician George Boole, is used in the design of
digital logic circuits.
Symbology
In Boolean algebra, the AND operation, also called logical conjunction, is written using an asterisk
(*), a multiplication symbol (×), or by running two characters together, for example, X*Y.
The NOT operation, also called logical inversion, is denoted by placing a tilde (~) over the
quantity, as a minus sign (−) or dash (-) followed by the quantity, as a “lazy inverted L” (¬) followed
by the quantity, or as the quantity followed by an accent or “prime sign” (′). An example is −X.
The OR operation, also called logical disjunction, is written using a plus sign (+), for example,
X + Y.
The foregoing are the symbols used by engineers. Table 26-1A shows the values of these func-
tions, where 0 indicates “falsity” and 1 indicates “truth.”
In mathematics and philosophy courses involving logic, you may see other symbols used for
conjunction and disjunction. The AND operation in some texts is denoted by a detached arrow-
Logic 443
Table 26-1A. Boolean operations.
XY−X X*Y X+Y
00 1 0 0
01 1 0 1
10 0 0 1
11 0 1 1