First, we will make the Chinese meaning and English abbreviation one by one:
With: and
Or: or
No: not
vs. non: nand
Or non:nor
XOR: xor
Same or: xnor
If you want to remember these logical operations accurately and for a long time, there is a corresponding rule formula:
With: and -> there are 0 out of 0, all 1 out of 1 For example: 1 , 1->1 1 , 0->0 0 , 1->0 0 , 0->0
Or: or -> There are 1 out of 1, all 0 out of 0 For example: 1 , 1–>1 1 , 0–>1 0 , 1–>1 0 , 0–>0
Non: not -> 1 out of 0, 0 out of 1 For example: 1 -->0 0->1
:nand ->Press the operation of versus first, and then the result is inverted. For example: 1 , 1->0 1 , 0->1 0 , 1->1 0 , 0->1
Or non:nor ->Press or first, then the result is inverted. For example: 1 , 1->0 1 , 0->0 0 , 1->0 0 , 0->1
XOR: xor ->The difference is 1, the same is 0. For example: 1, 1-->0 1, 0-->1 0, 1-->1 0, 0-->0
Same or: xnor -> same is 1, difference is 0 For example: 1, 1-->1 1, 0-->0 0, 1-->0 0, 0-->1
Author: Long time no see
Source: CSDN
Original text: /weixin_38524587/article/details/81182159
Copyright Statement: This article is an original article by the blogger. Please attach a link to the blog when reprinting!