Question: Permutations

Question:Permutations

Steph123 92 Maple

Hello all,

 

I am sure that there is probably a simple way of doing this, but I can't figure out how. I want to take n sets. Say 2 for the moment: {a,b}, {c,d} and I want to output all the possible n-tuples (n=2) with 1 element from each set. So: [a,c],[c,a],[a,d],[d,a],[b,c].[c,b],[b,d],[d,b].

 

Does anyone know how I might be able to do this?

Thanks, S

Please Wait...