MathGroup Archive 2002

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

Search the Archive

Re: NextComposition - the bug?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg33427] Re: [mg33365] NextComposition - the bug?
  • From: Nikolay Andreev <andreev at mccme.ru>
  • Date: Thu, 21 Mar 2002 09:27:06 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Dear Rob!

Thank you for the explanation. (I didn't find this in help by myself).

Thank you,
Nikolay

> According to the usage statement,
> 
> NextComposition[l] gives the integer composition which follows l in a
>    canonical order.
> 
> NextComposition takes a single list as its argument.  For example,
> NextComposition[{2,0,1}] returns {1,1,1}.
> 
> Rob Pratt
> Department of Operations Research
> The University of North Carolina at Chapel Hill
> 
> rpratt at email.unc.edu
> 
> http://www.unc.edu/~rpratt/
> 
> 



  • Prev by Date: Re: Rolling up some integers
  • Next by Date: Mathematica programming guide/book ?
  • Previous by thread: Re: NextComposition - the bug?
  • Next by thread: Mathematica and Microsoft.net