focus expression text field at startup -> version 1.2
[LeanCalc.git] / help / xor
1 NAME
2     xor - bitwise exclusive or of a set of integers
3
4 SYNOPSIS
5     xor(x1, x2, ...)
6
7 TYPES
8     x1, x2, ... integer
9
10     return      integer
11
12 DESCRIPTION
13     Compute the bitwise exclusive or of a set of integers.
14
15     For one argument xor(x1) returns x1.  For two arguments,
16     xor(x1,x2) returns the bitwise exclusive or of x1 and x2.
17     For each bit pair:
18
19         0 0 xor returns 0
20         0 1 xor returns 1
21         1 0 xor returns 1
22         1 1 xor returns 0
23
24     For more than two arguments, xor(x1,x2,x3, ..., xn) returns:
25
26         xor(...xor(xor(x1,x2), x3), ... xn)
27
28 EXAMPLE
29     > print xor(2), xor(5, 3, -7, 2, 9)
30     2 10
31
32 LIMITS
33     The number of arguments is not to exceed 100.
34
35 LINK LIBRARY
36     NUMBER *qxor(NUMBER *x1, NUMBER *x2)
37
38 SEE ALSO
39     XXX - fill in
40