Re: Sum of terms --> list
- To: mathgroup at smc.vnet.net
- Subject: [mg110664] Re: Sum of terms --> list
- From: "Nasser M. Abbasi" <nma at 12000.org>
- Date: Thu, 1 Jul 2010 08:27:01 -0400 (EDT)
- References: <i073se$koe$1@smc.vnet.net> <i0cjj9$878$1@smc.vnet.net>
- Reply-to: nma at 12000.org
On 6/29/2010 3:57 AM, Richard Fateman wrote: > If you want to send a Mathematica expression that is already parsed, use > FullForm. > Even {a,b,c} needs to have some parsing, and a FullForm expression > needs very little more. > > > While List@@(a+b I) gives {a, I*b}, > > note that List@@(3+ 4 I) does not give {3, I*4}. > > This is supposed to be a feature. > it seems in the second case, this happens becuase the expression was evaluated first? By holding evaluation, one can get the same result as in the first case: List @@ (a + b*I) {a, I*b} List @@ (3 + 4*I) 3 + 4*I ReleaseHold@(List @@ (3 + Hold@4*I)) {3,4 I} --Nasser