MathGroup Archive 2008

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

Search the Archive

When is a List not a List?


   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?