Method on @sym: setxor (A, B)

Return the symmetric difference of two sets.

Example:

A = interval(2, sym(10));
B = interval(0, sym(pi));
setxor(A, B)
  ⇒ ans = (sym) [0, 2) ∪ (π, 10]

And we note this is the same as the union of:

setdiff(A, B)
  ⇒ ans = (sym) (π, 10]
setdiff(B, A)
  ⇒ ans = (sym) [0, 2)

See also: @sym/union, @sym/intersect, @sym/setdiff, @sym/unique, @sym/ismember, @sym/finiteset, @sym/interval.

Package: symbolic