Binary logic . Binary logic deals with logical operations with variables that adopt only two possible values (0.1), taking as a reference that the value “0” corresponds to a value that can be called “NO”, “False”, “Low” , “Open”, etc., and the value “1” such as “YES”, “True”, “High”, ‘Closed “, etc., depending on the system to which it is applied. Therefore, the factors involved in a logical operation can only take two values, true or false, and the result of that logical operation can only have one true or false value.
Summary
[ hide ]
- 1 Historical Review
- 2 Logical functions
- 1 OR function
- 2 AND function
- 3 EQUAL function
- 4 NOT function
- 5 NAND function
- 6 NOR function
- 7 OREX function
- 8 NOREX function
- 3 Axioms
- 1 Commutative property
- 2 Associative property
- 3 Distributive property
- 4 Source
Historical review
This type of algebra was developed in the early 19th century by mathematician George Boole and is applicable to digital electrical circuits, fluid circuits, light circuits, etc. The adaptation of Boole’s algebra to digital computers was introduced in 1938 by Claude Shannon of Bell Laboratories. This logic is applied in many spheres, but in computing it has been developed the most, both in the instructions and in the operation of electronic components.
Logical functions
The number of combinations that can be established in a binary logic operation depends on the number of variables that intervene in it. Since variables can only take two possible values, the possible combinations would be two raised to the number of variables. For example, for four variables it would be 16 combinations (2 ^ 4 = 16). The result of this operation will depend on the type of function that is applied.
OR function
The OR function is equivalent to the conjunction “O” in our language, also called logical sum. When applying this function on two variables (A and B), the result (S) will be the following: If at least one of the two variables has a true value (1), then the result will be true. Four combinations are possible for this function with two variables, that is:
| TO | B | S |
| 0 | 0 | 0 |
| 0 | one | one |
| one | 0 | one |
| one | one | one |
AND function
The AND function is equivalent to the conjunction “Y” in our language, also called logical multiplication. When applying this function on two variables (A and B), the result (S) will be the following: The result will be true if and only if, A and B are true. That is to say:
| TO | B | S |
| 0 | 0 | 0 |
| 0 | one | 0 |
| one | 0 | 0 |
| one | one | one |
EQUAL function
For this operation, the result will be true if variable A is true, otherwise it will be false. The possible combinations are as follows:
| TO | S |
| one | one |
| 0 | 0 |
NOT function
The result of this function is similar to the EQUAL function but negated. In other words, if variable A is true, the result will be false and vice versa:
| TO | S |
| one | 0 |
| 0 | one |
NAND function
It is equivalent to the AND function negated, that is, the result will be false if both variables are true, otherwise, if at least one is false, the result will be true. It would be this way:
| TO | B | S |
| 0 | 0 | one |
| 0 | one | one |
| one | 0 | one |
| one | one | 0 |
NOR function
This function is equivalent to that of the negated OR function, that is, the result will be true if both variables are false, otherwise, if at least one is true, the result will be false. It would be this way:
| TO | B | S |
| 0 | 0 | one |
| 0 | one | 0 |
| one | 0 | 0 |
| one | one | 0 |
OREX function
The OREX (exclusive OR) function The result will be true if one of the two variables has a true value, but the result will be false if both have a false value or both have a true value.
| TO | B | S |
| 0 | 0 | 0 |
| 0 | one | one |
| one | 0 | one |
| one | one | 0 |
NOREX function
The NOREX function is equivalent to the negated OREX function. The result will be false if one of the two variables has a false value, but the result will be true if both have a false value or both have a true value.
| TO | B | S |
| 0 | 0 | one |
| 0 | one | 0 |
| one | 0 | 0 |
| one | one | one |
Axioms
During the synthesis of logical functions, the main axioms or properties of this algebra are widely used.
Commutative property
A + B = B + A
AxB = BxA
Associative property
A + (B + C) = (A + B) + C = A + B + C
Ax (BxC) = (AxB) xC = AxBxC
Distributive property
Ax (B + C) = AxB + AxC
A + (BxC) = (A + B) x (A + C)




