multiplying sets
- To: mathgroup at smc.vnet.net
- Subject: [mg2956] multiplying sets
- From: Tommi Salminen <titosa at uta.fi>
- Date: Wed, 17 Jan 1996 03:07:31 -0500
I have a problem as follows:
I have a set, for instance: s={{a,b,c},{d,e},{f,g}}, and I would like
to get a set t, that includes all possible multiplications between
those three sets {a,b,c}, {d,e} and {f,g}.
Of course, one way would be :
Outer[Times,{a,b,c},{d,e},{f,g}], but I'd like find some kind
of a more reasonable way to do it, because it would be just a part
of a larger program. Anyway, it doesn't have to be some elegant way;
if it works, it's OK.
Any suggestions?
Tommi
==== [MESSAGE SEPARATOR] ====