Mathematica 9 is now available
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: [mg53275] Re: [mg53264] direct product of two sets
  • From: Adriano Pascoletti <pascolet at dimi.uniud.it>
  • Date: Tue, 4 Jan 2005 03:12:48 -0500 (EST)
  • References: <200501030929.EAA10701@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Use Distribute

A = Range[5]; B = Range[5] + 10;
Distribute[{A, B}, List, List]

gives

{{1, 11}, {1, 12}, {1, 13}, {1, 14}, {1, 15}, {2, 11}, {2, 12}, {2,  
13}, {
   2, 14}, {2, 15}, {3, 11}, {3, 12}, {3, 13}, {3, 14}, {3, 15}, {4,  
11}, {
   4, 12}, {4, 13}, {4, 14}, {4, 15}, {5, 11}, {5, 12}, {5, 13}, {5,  
14}, {
   5, 15}}


Adriano Pascoletti


Il giorno 03/gen/05, alle 10:29, Cong ha scritto:

> 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
>
>


------------------------------------------------------------------------ 

Adriano Pascoletti
Dipartimento di Matematica e Informatica
Universita' di Udine
Via delle scienze 206
I-33100 Udine
Italy



  • Prev by Date: Re: direct product of two sets
  • Next by Date: Re: How to draw a trajectory in DensityPlot&#65311;
  • Previous by thread: Re: direct product of two sets
  • Next by thread: Re: direct product of two sets