xor

(function for equations)

 

Usage:

xor (b1, b2, ... bn)

Definition:

odd (NumberTrue (b1, b2, ... bn))

Required:

bi are boolean

Returns the exclusive-or of b1, b2bn.

This is also known as the parity function, and will return true iff an odd number of bi evaluate to true.

See also and, or, not, and equal.