

Xor
Details

- Xor[e1,e2,…] can be input in StandardForm and InputForm as
. The character ⊻ can be entered as
xor
or \[Xor].
- Xor gives symbolic results when necessary, applying various simplification rules to them.
- Unlike And, Nand, Or, and Nor, Xor must always test all its arguments, and so is not a control structure, and does not have attribute HoldAll.
Examples
open all close allScope (4)
Xor is associative and commutative:
Expand in terms of And, Or, and Not:
TraditionalForm formatting:
Applications (3)
Properties & Relations (3)
See Also
LogicalExpand Mod BitXor Xnor Nor Or BooleanCountingFunction
Characters: \[Xor]
Function Repository: VennDiagram
Tech Notes
Related Guides
Related Links
History
Introduced in 1988 (1.0) | Updated in 2003 (5.0)
Text
Wolfram Research (1988), Xor, Wolfram Language function, https://reference.wolfram.com/language/ref/Xor.html (updated 2003).
CMS
Wolfram Language. 1988. "Xor." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2003. https://reference.wolfram.com/language/ref/Xor.html.
APA
Wolfram Language. (1988). Xor. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Xor.html
BibTeX
@misc{reference.wolfram_2025_xor, author="Wolfram Research", title="{Xor}", year="2003", howpublished="\url{https://reference.wolfram.com/language/ref/Xor.html}", note=[Accessed: 08-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_xor, organization={Wolfram Research}, title={Xor}, year={2003}, url={https://reference.wolfram.com/language/ref/Xor.html}, note=[Accessed: 08-August-2025]}