# setXOR(a,b)

Returns the set of elements that are in either but not both of two sets.

### Syntax

o_setXOR(a,b)
  a: array any - input set
  b: array any - input set
  return: array 1D any - array that includes all elements that are part of either A or B but not both A and B

### Usage

Use this to perform set operation "union - intersection"

### Location

menu: veeos ==> Math ==> Sets ==> setXOR

library: mathLib

### Example

o_setXOR( [2 3 4 3 5 5 3 1] , [6 3 4 7 1] ) returns [2 5 6 7]

### Notes

setXOR is equivalent to a union of two sets minus the intersection of those sets, as in the area of a Venn diagram outside of the intersecting area.

### Reference

### Dependencies

### Supported On

VEE 7.0+, all platforms

### See Also

isElement, setAND, setComplement, setOR, unique

© 2015-2017. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 24 February 2017 09:07.