Here you see how to produce a cartesian product of two sets. How can we obtain the cartesian product of three or more sets?
CartesianProduct[l1,l2,l3] doesn't work.
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.Sign up to join this community