Re: direct product of two sets
- To: mathgroup at smc.vnet.net
- Subject: [mg53293] Re: direct product of two sets
- From: "Robert M. Mazo" <mazo at uoregon.edu>
- Date: Tue, 4 Jan 2005 03:14:13 -0500 (EST)
- Organization: University of Oregon
- References: <crb4hv$an3$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Try
Flatten[Table[{A[[i]], B[[j]]},{i, Length[A]},{j, Length[B]}] ,1]
This assumes that you have already defined A and B as lists.
Bob
*****************************
On Mon, 3 Jan 2005 09:50:55 +0000 (UTC), vo.chi.cong at is.titech.ac.jp
(Cong) wrote:
>Hello!
>
>Give 2 finite sets A and B, how can I compute their direct product
>A x B := {(a,b) : a\in A, b\in B}
>
>Can someone help me?
>
>Best Regards,
>
>Cong