symmdiff
set symmetric difference
Calling Sequence
Parameters
Description
Examples
symmdiff(s1, s2, s3,...)
s1, s2, s3, ...
-
sets or expressions
The procedure symmdiff is used for the set symmetric difference operator, which is defined by symmdiff(a,b)=(a union b) minus (a intersect b), for two arguments and associates to the left for more arguments.
symmdiff⁡a,b
a,b
symmdiff⁡a,b,b,c
a,c
symmdiff⁡a,b,a,b
∅
symmdiff⁡1,2,3,4,2,4,5,6,3,4,5,7
1,4,6,7
symmdiff⁡1,2,3,4,2,4,5,6
1,3,5,6
symmdiff⁡1,3,5,6,3,4,5,7
symmdiff⁡1,3,4,5,3,5,2,4,5,3,4,5,2,4,5
1,3,5
See Also
intersect
minus
union
Download Help Document