Fortune Telling Collection - Comprehensive fortune-telling - What are the basic elements of Boolean operations?

What are the basic elements of Boolean operations?

The basic elements of Boolean operation are: 1, where 0 stands for "true" and "false".

Boolean operation is a logical deduction method of digital symbolization, including union, intersection and subtraction. This logical operation method is used in graphic processing operation, which makes simple basic graphic combination produce new shapes. It develops from two-dimensional Boolean operation to three-dimensional Boolean operation.

Binary Boolean operation

There are four Boolean operations of binary numbers: AND, OR, NOT and XOR. Binary Boolean operations are widely used in computer programming.

Extended data:

Binary Boolean Operator: AND (&; ), or (|), XOR (), when their operands are Boolean values, they are logical operators. Whether the operands on both sides of the operator are true or not, the result will be calculated first and then Boolean logic operation will be carried out; When their operands are integers, they are bit operators.

Conditional Boolean Operator: Conditional AND (&; &), the condition is still (||), and the condition is not (! ) operator, only Boolean values can be calculated, from left to right. If an operand is true, the operand on the right is not calculated, and the calculation result is obtained directly.

Function: Boolean operation obtains a new object shape through the operations of union, difference and intersection of two or more objects. The system provides four Boolean operations: Union, intersection and subtraction (difference set, including A-B and B-A). .

Effect: After Boolean operation, the object can modify two operands at any time, and the way and effect of Boolean operation can also be edited and modified. The process of Boolean operation modification can be recorded as animation to show the magical cutting effect.

References:

Baidu Encyclopedia-Boolean Operation