Fortune Telling Collection - Fortune-telling birth date - What are the basic logical operations?

What are the basic logical operations?

There are three basic logical operations: AND, or NAND.

1, and operation

And operation, also called intersection, means that for two propositions A and B, their conjunction is "AND". If and only if A and B are true at the same time, the whole connection proposition is true.

For example, if A means "Today is Monday" and B means "Today is sunny", then the connection result of A and B is "Today is Monday, today is sunny".

2. Or operation

Or operation, also called union, means that for two propositions A and B, their conjunction is "OR". When one of A or B holds, the whole connection proposition holds.

For example, if A means "there are bananas in this box" and B means "there are apples in this box", then the connection result of A or B means "there are bananas or apples in this box".

3. Non-operation

No operation, also known as inversion, refers to the inversion of the true value of proposition A (that is, A is true and false after inversion; If a is false, it is true after inversion).

For example, a means "today is sunny", then non-A means "today is not sunny".

These three logical operations can be used alone or in combination to form more complex logical expressions. In the field of computer science and electronic engineering, logic operation is widely used in circuit design, computer programming and other fields, and is the basis of realizing digital logic. In daily life, logical operation is often used for judgment, reasoning, proof, etc. It is a way of thinking and a tool.