Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

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


  • Prev by Date: Re: direct product of two sets
  • Next by Date: SymbolShape
  • Previous by thread: Re: direct product of two sets
  • Next by thread: Re: direct product of two sets