MathGroup Archive 2008

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

Search the Archive

When is a List not a List?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90947] When is a List not a List?
  • From: AES <siegman at stanford.edu>
  • Date: Thu, 31 Jul 2008 02:56:41 -0400 (EDT)
  • Organization: Stanford University

   g[x_, n_] := x^n
   FullForm[Table[g[x, n], {n, 1, 2}]]
   FullForm[{g[x, 1], g[x, 2]}]
   Plot[{g[x, 1], g[x, 2]}, {x, 0, 1}, PlotStyle -> {Red, Blue}]
   Plot[Table[g[x, n], {n, 1, 2}], {x, 0, 1}, PlotStyle -> {Red, Blue}]

The FullForm[]s are identical.  One Plot[] has red and blue curves; the 
other has two blue curves.

Quirky!


  • Prev by Date: MetaMathematica
  • Next by Date: Performance of Array Addition
  • Previous by thread: MetaMathematica
  • Next by thread: Re: When is a List not a List?