MathGroup Archive 2005

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

Search the Archive

Re: direct product of two sets


Thank you everyone! Your solutions worked!

Cong

Tomas Garza wrote:

> Perhaps this will help:
>
> In[1]:=
> a = {a1, a2, a3}; b = {b1, b2, b3};
>
> In[5]:=
> Flatten[Outer[List, a, b], 1]
> Out[5]=
> {{a1, b1}, {a1, b2}, {a1, b3}, {a2, b1}, {a2, b2}, {a2, b3}, {a3, b1},
> {a3, b2}, {a3, b3}}
>
> Tomas Garza
> Mexico City
> ----- Original Message ----- From: "Cong" <vo.chi.cong at is.titech.ac.jp>
To: mathgroup at smc.vnet.net
> To: <mathgroup at smc.vnet.net>
> Sent: Monday, January 03, 2005 3:29 AM
> Subject: [mg53271] [mg53264] direct product of two sets
>
>
>> 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: For to Map to Increase Speed
  • Next by Date: Re: direct product of two sets
  • Previous by thread: Re: direct product of two sets
  • Next by thread: Re: direct product of two sets