MathGroup Archive 2006

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

Search the Archive

RE: Converting an expression to a list of terms?


a + b - c + d - e
List @@ %
a + b - c + d - e
{a, b, -c, d, -e}

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 


From: AES [mailto:siegman at stanford.edu]


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: symbolic solution of ODE
  • 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?