Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*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 2000

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

Search the Archive

Re: Newbie question: pairswise function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23867] Re: [mg23857] Newbie question: pairswise function
  • From: "Harvey P. Dale" <hpd1 at is2.nyu.edu>
  • Date: Thu, 15 Jun 2000 00:51:06 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Sidney:
In[1]:= l = {1, 5, 19, 100};
In[2]:= Needs["DiscreteMath`Combinatorica`"]
In[3]:= ?KSubsets
elements, ordered lexicographically."
In[4]:= KSubsets[l, 2]
Out[4]= {{1, 5}, {1, 19}, {1, 100}, {5, 19}, {5, 100}, {19, 100}}
	Best,
	Harvey


  • Prev by Date: Programming Trig Functions
  • Next by Date: Integrate returns 0
  • Previous by thread: Re: Programming Trig Functions
  • Next by thread: Integrate returns 0