Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / Programming / Logical Operations /

Xor

FilledSmallSquare Xor[, , ... ] is the logical XOR (exclusive OR) function.

FilledSmallSquare It gives True if an odd number of the are True, and the rest are False. It gives False if an even number of the are True, and the rest are False.

FilledSmallSquare Xor[, , ... ] can be input in StandardForm and InputForm as ... . The character can be entered as AliasIndicatorxorAliasIndicator or \[Xor].

FilledSmallSquare Xor gives symbolic results when necessary, applying various simplification rules to them.

FilledSmallSquare Unlike And 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.

FilledSmallSquare See Section 1.5.6.

FilledSmallSquare See also: LogicalExpand, Mod.

FilledSmallSquare New in Version 1; modified in 4.1.

Further Examples



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.