January 09, 2025

What is the role of XOR _ XOR and XOR

XOR is a mathematical operator, English is exclusive OR, abbreviated as xor, applied to logical operations. The mathematical symbol of XOR is "⊕" and the computer symbol is "xor". Its algorithm is:

A⊕b = (¬a ∧ b) ∨ (a ∧¬b)

If the two values ​​a and b are not the same, the XOR result is 1. If the two values ​​a and b are the same, the XOR result is 0.

XOR is also called semi-addition operation, and its algorithm is equivalent to binary addition without carry: binary means 1 for true, 0 means false, then XOR is: 0⊕0=0,1⊕0= 1,0⊕1=1,1⊕1=0 (same as 0, and the difference is 1). These rules are the same as the addition, except that there is no carry.

XOR, abbreviated as XOR, EOR, EX-OR

There are three kinds of operators in the program: XOR, xor, ⊕.

How to use

z = x ⊕ y

z = x xor y
What is the role of XOR _ XOR and XOR

Video Processors

Guangzhou Chengwen Photoelectric Technology co.,ltd , https://www.cwleddisplay.com