Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Discrete Mathematics > Boolean Computation >
Mathematica > Mathematics and Algorithms > Logic & Boolean Algebra > Boolean Computation >

Xnor

Xnor[e1, e2, ...]
is the logical XNOR (not XOR) function. It gives True if an even number of the e_i are True, and the rest are False. It gives False if an odd number of the e_i are True, and the rest are False.
  • Xnor gives symbolic results, applying various simplification rules automatically.
  • Unlike And, Nand, Or and Nor, Xnor must always test all its arguments, and so is not a control structure, and does not have attribute HoldAll.
Xnor in disjunctive normal form:
Enter using Esc xnor Esc:
Automatic simplifications:
Elimination of constants:
Xnor is commutitive and sorts its arguments:
Xnor in n varibles has a disjunctive normal form of length 2n-1:
Xnor is equivalent to the negation of Xor:
For two variables Xnor is the same as Equivalent:
But they differ for more then two variables:
Xnor is a special case of BooleanCountingFunction:
The 2D truth table for Xnor of 12 variables:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team