definition
The logical operator is associated with &; Still |, no! Three kinds. And/or split length/short circuit, which is a long road and&; (also known as bitwise AND bitwise operatOR), long or | (also known as bitwise or bitwise operator), short circuit AND &;; & amp, short circuit or ||.
differentiate
The difference is: (1) Long-distance logical operators perform logical operations after the operations on both sides are completed; For short circuit, the left part of the logical operator is executed first, and the logical operation result is directly input as required, and the right part is no longer executed.
translate freely
Logical connector
And: and.
Or: or
No: No.
The general operation order is NAND or (or NOT or AND).
And: the same truth is true, and a mistake is false;
Or: the same fake is fake and the truth is true;
True or false, true or false.
Detailed explanation
This belongs to the simple basic knowledge of Boolean algebra.
Simply put,
The And operation is, for example, if both inputs are 1, then the operation result is1; And as long as one of them is 0, the output is 0. More than three inputs are similar.
Or operation means that if one or both of the two inputs are 1, the operation result is1; If both are 0, the output is 0.
Non-operation is the inversion of the original input, that is, 1 changes to 0, 0 changes to 1, or there is no electricity and no electricity transformation;
If I remember correctly, the knowledge of simple Boolean algebra was studied in the course of digital electronic technology in the university, and it is also the basic course of electrical automation technology specialty. It is suggested that the subject study related courses.
And or operation formula
The NAND operation formula is: multiplication relation between anl and is 1 multiply1=1multiply 0=0, orl or is addition relation 1+ 1 = 65438+. This is a logical operation.
1, logical constants and variables: There are only two logical constants, namely 0 and 1, which are used to represent two opposing logical states. Like ordinary algebra, logical variables can also be represented by letters, symbols, numbers and their combinations, but there are essential differences between them, because logical constants have only two values, namely 0 and 1, and there is no intermediate value.
2. Logical operations: In logical algebra, there are three basic logical operations: AND, or NAND. There are many expressions of logical operations, such as statement description, logical algebra, truth table, Karnaugh map and so on.
3. Logical function: A logical function is an algebraic expression in which logical variables and constants are connected by operators. Similarly, logical functions can also be expressed in the form of tables and graphs.
4. Logic Algebra: Logic Algebra is a mathematical system that studies the operation and simplification of logic functions. The operation and simplification of logic function is the foundation of digital circuit course, and it is also the key of digital circuit analysis and design.