Xnor—Wolfram Documentation

Xnor[e1,e2,]

is the logical XNOR (not XOR) function. It gives True if an even number of the ei are True, and the rest are False. It gives False if an odd number of the ei are True, and the rest are False.

Details

Examples

open all close all

Basic Examples  (3)

Xnor in disjunctive normal form:

Enter using xnor:

Scope  (1)

Automatic simplifications:

Elimination of constants:

Xnor is commutative and sorts its arguments:

Properties & Relations  (5)

Neat Examples  (1)

The 2D truth table for Xnor of 12 variables:

Wolfram Research (2008), Xnor, Wolfram Language function, https://reference.wolfram.com/language/ref/Xnor.html.

Text

Wolfram Research (2008), Xnor, Wolfram Language function, https://reference.wolfram.com/language/ref/Xnor.html.

CMS

Wolfram Language. 2008. "Xnor." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Xnor.html.

APA

Wolfram Language. (2008). Xnor. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Xnor.html

BibTeX

@misc{reference.wolfram_2025_xnor, author="Wolfram Research", title="{Xnor}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/Xnor.html}", note=[Accessed: 22-February-2026]}

BibLaTeX

@online{reference.wolfram_2025_xnor, organization={Wolfram Research}, title={Xnor}, year={2008}, url={https://reference.wolfram.com/language/ref/Xnor.html}, note=[Accessed: 22-February-2026]}