intersect SciMax Toolbox intervalp

SciMax Toolbox >> intersection

intersection

Maxima Function

Calling Sequence

intersection (a_1, ..., a_n)

Description

Returns a set containing the elements that are common to the sets a_1 through a_n.

intersection complains if any argument is not a literal set.

Examples:

(%i1) S_1 : {a, b, c, d};
(%o1)                     {a, b, c, d}
(%i2) S_2 : {d, e, f, g};
(%o2)                     {d, e, f, g}
(%i3) S_3 : {c, d, e, f};
(%o3)                     {c, d, e, f}
(%i4) S_4 : {u, v, w};
(%o4)                       {u, v, w}
(%i5) intersection (S_1, S_2);
(%o5)                          {d}
(%i6) intersection (S_2, S_3);
(%o6)                       {d, e, f}
(%i7) intersection (S_1, S_2, S_3);
(%o7)                          {d}
(%i8) intersection (S_1, S_2, S_3, S_4);
(%o8)                          {}
intersect SciMax Toolbox intervalp