Re: How to separate a sum into terms

*To*: mathgroup at smc.vnet.net*Subject*: [mg92027] Re: [mg92018] How to separate a sum into terms*From*: "Thomas Dowling" <thomasgdowling at gmail.com>*Date*: Thu, 18 Sep 2008 06:09:15 -0400 (EDT)*References*: <200809170829.EAA14092@smc.vnet.net>

Hello, In[5]= Apply[List, a + b - c + f[1] - g[a]/g[b]] Out[5]= {a, b, -c, f[1], -g[a]/g[b]} As was brought to our attention in a recent post: In[6]= Variables[a + b - c + f[1] - g[a]/g[b]] Out[6]= {a, b, c, f[1], g[a], g[b]} May also be of use? Tom Dowling On Wed, Sep 17, 2008 at 9:29 AM, Slava Rychkov <slava.rychkov at gmail.com>wrote: > Hi! > > I want to separate a Mathematica expression written as a sum into > separate terms > E.g. for > > a+b-c+f[1]-g[a]/g[b] > > I want to get a list > > {a,b,-c,f[1],-g[a]/g[b]} > > Is there a simple way to do this? > > Thanks, > -- > Vyacheslav Rychkov https://mail.sns.it/~rychkov<https://mail.sns.it/%7Erychkov> > Scuola Normale Superiore Tel: +39-050-509068 (office) > Classe di Scienze +39-050-3820086 (home) > Piazza dei Cavalieri, 7 +39-3403925168 (mobile) > 56100 Pisa Fax: +39-050-509045 > Italy E-mail: Rychkov at sns.it > >

**References**:**How to separate a sum into terms***From:*Slava Rychkov <slava.rychkov@gmail.com>