MathGroup Archive 2000

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

Search the Archive

Re: Newbie question: pairswise function


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