0

What alternate forms are there of this equation?

$$(A \oplus B)^c$$

$A$ and $B$ are binary vectors / integers, $\oplus$ is the bitwise XOR operator, $c$ is a constant. For example:

$$(5 \oplus 7)^2 = ((1, 0, 1) \oplus (1, 1, 1))^2 = ((0, 1, 0))^2 = 2^2 = 4$$

By definition, it's the same as this:

$$(\sum ((a_i + b_i \bmod 2) \cdot 2^i))^c$$

Is there another formula which doesn't require an aggregate like $\sum$?

Kamil Jarosz
  • 4,984

0 Answers0