BitXor

BitXor[n1,n2,]

gives the bitwise XOR of the integers ni.

Details

  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
  • BitXor[n1,n2,] yields the integer whose binary bit representation has ones at positions where an odd number of the binary bit representations of the ni have ones.
  • For negative integers BitXor assumes a two's complement representation.
  • BitXor automatically threads over lists.

Examples

open allclose all

Basic Examples  (1)

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (3)

Generalizations & Extensions  (1)

Applications  (4)

Properties & Relations  (4)

Neat Examples  (3)

See Also

BitAnd  BitOr  BitNot  Xor  IntegerDigits  CellularAutomaton  HammingDistance  SequenceAlignment

Tutorials

Introduced in 1999
(4.0)