MathGroup Archive 2006

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

Search the Archive

Re: Converting an expression to a list of terms?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg71488] Re: [mg71463] Converting an expression to a list of terms?
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Mon, 20 Nov 2006 18:11:52 -0500 (EST)
  • Reply-to: hanlonr at cox.net

a=a1*a2; b=b1*b2; c=c1/c2;

a+b-c

a1*a2 + b1*b2 - c1/c2

List@@%

{a1*a2, b1*b2, -(c1/c2)}


Bob Hanlon

---- AES <siegman at stanford.edu> wrote: 
> How to convert an expression consisting of a sum of terms in an Output 
> cell:
> 
>    A + B - C + . . . 
> 
> (where A, B, C are themselves product expressions) to a list
> 
>    {A, B, -C, . . . }
> 
> in some easier fashion than doing it by hand using Find and Replace?
> 


  • Prev by Date: RE: Converting an expression to a list of terms?
  • Next by Date: Re: Converting an expression to a list of terms?
  • Previous by thread: RE: Converting an expression to a list of terms?
  • Next by thread: Re: Converting an expression to a list of terms?