Combinations of numbers in sets
It would be great if someone could give me a lead on this:
I have 3 sets: A={1,3,4,8}, B={5,6,9}, C={2,0,7}.
Is there a command in Maple that can produce all possible combinations of all numbers involved in 3 sets so that I could get the following result: [A1,B1,C1], [A2,B1,C1], [A3,B1,C1], [A4,B1,C1], [A1,B2,C1] etc
I have tried the following but the result is:
> comb(({1, 3, 4, 8}, {5, 6, 9}, {0, 2, 7}), 3);
print(comb({1, 3, 4, 8}, {5, 6, 9}, {0, 2, 7}, 3));
comb({1, 3, 4, 8}, {5, 6, 9}, {0, 2, 7}, 3)
thanks...

Loading Comments & Answers