Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: How to separate a sum into terms

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92035] Re: How to separate a sum into terms
  • From: Peter Breitfeld <phbrf at t-online.de>
  • Date: Thu, 18 Sep 2008 06:11:38 -0400 (EDT)
  • References: <gaqf4g$doa$1@smc.vnet.net>

Slava Rychkov schrieb:
> 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,
> -- 

expr = a+b-c+f[1]-g[a]/g[b]

List@@expr

Gruss Peter
-- 
==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de


  • Prev by Date: Re: How to separate a sum into terms
  • Next by Date: Re: How to separate a sum into terms
  • Previous by thread: Re: How to separate a sum into terms
  • Next by thread: Re: How to separate a sum into terms