The role of xor and the formula

effect

XOR, binary operation. Reversible operation. 1 xor 1=0, 0 xor 0=0, 1 xor 0=1, 0 xor 1=1.a xor b operation method: convert a, b into binary number, and then compare, each digit If 0 or 1 is the same, then the result is 0. If it is different, take 1 and convert the result to the original number, which is the result. In oi, it is often used for bit operations.

Formula type

1, logical addition ("or" operation)

Logical addition is usually indicated by the symbol "+" or "∨". The logical addition rule is as follows: 0+0=0, 0∨0=0 0+1=1, 0∨1=1 1+0=1, 1∨0=1 1+1=1, 1∨1=1 As can be seen from the above equation, logical addition has the meaning of "or". That is to say, in a given logical variable, if either A or B has a value of 1, the logical addition result is 1; if both are 1, the logic is incremented to 1.

2, logical multiplication ("and" operation)

Logical multiplication is usually represented by the symbol "&TImes;" or "∧" or "·". The logical multiplication rules are as follows: 0&TImes;0=0, 0∧0=0, 0·0=0 0&TImes;1=0, 0∧1=0, 0·1=0 1&TImes;0=0, 1∧0= 0, 1·0=0 1×1=1, 1∧1=1, 1·1=1 It is not difficult to see that logical multiplication has the meaning of “and”. It means that only when the logical variables participating in the operation have a value of 1 at the same time, the logical product is equal to 1.

3, logical negation (non-operation)

Logical non-operations are also called logical no operations. The operation rules are: 0=1 Non-zero equals 1 1=0 Non-1 equals 0 4. XOR logical operation (half-plus operation) XOR operation is usually represented by the symbol “⊕”, and its operation rule is: 0⊕0= 0 0 is the same as 0, the result is 0 0⊕1=1 0 is the same as X, the result is 1 1⊕0=1 1 with 0 XOR, the result is 1 1⊕1=0 1 with 1 XOR, the result 0 is the difference between two logical variables, the output is 1

16 Port USB 1U Cabinet Charger

Our new 16 port USB1U built -in charger provides the fastest charging, and is supported by tablet computers and other battery -intensive personal electronic equipment! Adopting a compact and lightweight design, without occupying position space, can be a variety of offices, restaurants, retail, education or personal devices configuration. The USB has a built -in fast charging to up to 200 watt charging power, making it very suitable for most tablet computers, smartphones, portable battery charging equipment, and most other devices that meet the USB 2.0. Our new 16 port USB charging hub station has inventory and provides free transportation for free!

Hub USB Charging Station 16 Ports 200W, 16 Port USB Charger 1U Cabinet, 16-Port USB-C HUB

shenzhen ns-idae technology co.,ltd , https://www.best-charger.com