Re: direct product of two sets
- To: mathgroup at smc.vnet.net
- Subject: [mg53271] Re: [mg53264] direct product of two sets
- From: Cong <vo.chi.cong at is.titech.ac.jp>
- Date: Tue, 4 Jan 2005 03:12:37 -0500 (EST)
- References: <200501030929.EAA10701@smc.vnet.net> <001d01c4f1f3$7f253bb0$3f57fea9@Tomas>
- Sender: owner-wri-mathgroup at wolfram.com
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
>>
>>
>
>
>
- References:
- direct product of two sets
- From: vo.chi.cong@is.titech.ac.jp (Cong)
- direct product of two sets