Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

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/


  • Prev by Date: Erf[InverseErf] -- making a function and its inverse cancel
  • Next by Date: Re: How to handle Arrays that has functional parameters:
  • Previous by thread: Re: Erf[InverseErf] -- making a function and its inverse cancel
  • Next by thread: Re: this expression doesn't do what I expected - what's wrong?