MathGroup Archive 2006

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

Search the Archive

Re: efficient term collection algorithm


Here is a function thats makes it

In[26]:=
f[exp_]:=Module[{denoms},
     denoms=Variables[Denominator/@exp];
     denoms,Collect[exp,denoms]
     ]

IIn[31]:=
f[a/i+b/j+c/i+d/j]//InputForm

Out[31]//InputForm=
(a + c)/i + (b + d)/j



--

         Michael Jensen
         Hollandsvej 21 st. tv.
         DK-2800 Lyngby
         Danmark
         Tel.:       +45 4593 9482
         Mobil:    +45 2046 1169
	email: michaeljensen at mac.com
         http://homepage.mac.com/michaeljensen



  • Prev by Date: Re: Problems with NMaximize.
  • Next by Date: How to identify "intersections" between to data sets?
  • Previous by thread: Re: Problems with NMaximize.
  • Next by thread: Re: efficient term collection algorithm