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

MathGroup Archive 1997

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

Search the Archive

Re: REQ: Algorythm for combinations

  • To: mathgroup at smc.vnet.net
  • Subject: [mg8504] Re: REQ: Algorythm for combinations
  • From: Seth Chandler <SChandler at uh.edu>
  • Date: Thu, 4 Sep 1997 02:19:47 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

marc borms wrote:

> Hi,
>
> who knows the algorythm or a program to print out
> all possible combinations of x elements ?
>
> Please send some private email too.
>
> Thanks a lot,
>
> marc

Here are two methods:

Outer[List[Array[s,{6}],Array[s,{5}]

or

Distribute[List[Array[s,{6}],Array[s,{5}],List]




  • Prev by Date: importing images
  • Next by Date: Re: Defining Real expressions
  • Previous by thread: Re: importing images
  • Next by thread: Q. re results from Regression[ ]