MathGroup Archive 1997

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

Search the Archive

Re: Problem with collect

  • To: mathgroup at
  • Subject: [mg6439] Re: Problem with collect
  • From: hans.steffani at (Hans Steffani)
  • Date: Fri, 21 Mar 1997 22:59:29 -0500 (EST)
  • Organization: University of Technology Chemnitz, FRG
  • Sender: owner-wri-mathgroup at

My first posting did not state the problem completly.


blah1 vv ss + blah2 vv ss + 
blah3 vv aa + blah4 vv aa +
blah5 ss aa + blah6 ss aa
Collect[%,{ss vv,vv aa,ss aa}]

this produces

aa blah5 ss + aa blah6 ss + aa blah3 vv + aa blah4 vv + 
  blah1 ss vv + blah2 ss vv

although I want

aa vv(blah3+blah4) + ss vv(blah1+blah2) + ss aa(blah5+blah6)



aa (blah3 + blah4) vv + ss 
   (aa (blah5 + blah6) + (blah1 + blah2) vv)

which is not what I want.

Hans Friedrich Steffani
Hans Friedrich Steffani
Institut fuer Elektrische Maschinen und Antriebe, TU Chemnitz-Zwickau
mailto:hans.steffani at

  • Prev by Date: Console IO from mathlink
  • Next by Date: Modulus arithmetics
  • Previous by thread: Problem with collect
  • Next by thread: Re: Problem with collect