To define an n-tuple, rather than a list of n objects, the objects should be put inside the delimiters tuple[ and ]. For example, the set consisting of the points [1,3,4], [1,3,5], [2,3,4 and [2,3,5] is written
The Cartesian product of two sets: *
The Cartesian product of two sets is computed with the infixed
operator *.
Input:
Output:
Input:
Output: