MathGroup Archive 2010

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

Search the Archive

Sum of terms --> list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110569] Sum of terms --> list
  • From: uno <dxcqp2000 at gmail.com>
  • Date: Sat, 26 Jun 2010 03:09:51 -0400 (EDT)

Hi,

I have an expression that is a sum of terms, like
    a+b+c
and I want to convert it to a list, with as many elements as the
number of terms in the sum of terms, and with each element being each
of the terms, like
    {a,b,c}

Also, the same to go from a product of terms like
    a*b*c
to a list like
    {a,b,c}

Is there any way, in Mathematica, to do this?
I've been looking for an answer in the Help, and in the web, with no
help.

I ask this because "a*b+c+e*f*g" needs to be evaluated by an external
(.NET) program, which is not able to parse expressions. I have to
"break" everything inside Mathematica, before sending information to
that external program, which will evaluate that expression many times,
for different values of {a,b,c,d,e,f,g}.

Thank you.


  • Prev by Date: Matrix multiplication (again !)
  • Next by Date: Orthogonalize in a discrete setting
  • Previous by thread: Re: Matrix multiplication (again !)
  • Next by thread: Re: Sum of terms --> list