this expression doesn't do what I expected - what's wrong?
- To: mathgroup at smc.vnet.net
- Subject: [mg68975] this expression doesn't do what I expected - what's wrong?
- From: "Chris Chiasson" <chris at chiasson.name>
- Date: Sat, 26 Aug 2006 02:03:58 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
In[1]:= Table[Unevaluated[Sequence[{X[C][i],Y[C][i]}]],{i,4}]~~ Prepend~~"Corner (Geometric) Variable" Out[1]= {{X[C][1],Y[C][1]},{X[C][2],Y[C][2]},{X[C][3],Y[C][3]},{X[C][4], Y[C][4]}}~~Prepend~~Corner (Geometric) Variable I expected the result of the following command, because the two forms of input should parse to an identical expression, AFAIK: In[2]:= Prepend[Table[ Unevaluated[Sequence[{X[C][i],Y[C][i]}]],{i, 4}],"Corner (Geometric) Variable"] Out[2]= {Corner (Geometric) Variable,{X[C][1],Y[C][1]},{X[C][2],Y[C][2]},{X[C][3], Y[C][3]},{X[C][4],Y[C][4]}} What's wrong? -- http://chris.chiasson.name/