Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1997
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

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

Search the Archive

Re: Problem with collect

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

My first posting did not state the problem completly.

Take

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)

Collect[%,{ss,vv,aa}]

produces

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 e-technik.tu-chemnitz.de
http://www.tu-chemnitz.de/~hfst/


  • 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