MathGroup Archive 2008

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

Search the Archive

Re: When is a List not a List?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90976] Re: [mg90947] When is a List not a List?
  • From: Oliver Ruebenkoenig <ruebenko at wolfram.com>
  • Date: Fri, 1 Aug 2008 03:01:09 -0400 (EDT)
  • References: <200807310656.CAA07700@smc.vnet.net>

Hi 

On Thu, 31 Jul 2008, AES wrote:

>    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!
> 


Plot[Evaluate[ Table[g[x, n], {n, 1, 2}] ], {x, 0, 1}, 
 PlotStyle -> {Red, Blue}]

Oliver


  • Prev by Date: Manipulate[] concurrent sliders
  • Next by Date: Re: When is a List not a List?
  • Previous by thread: Manipulate[] concurrent sliders
  • Next by thread: Re: When is a List not a List?