MathGroup Archive 2003

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

Search the Archive

Re: Explain this (error in Plot[Evaluate[Range[3]],{x,0,1}])

  • To: mathgroup at smc.vnet.net
  • Subject: [mg41803] Re: Explain this (error in Plot[Evaluate[Range[3]],{x,0,1}])
  • From: bobhanlon at aol.com (Bob Hanlon)
  • Date: Fri, 6 Jun 2003 09:50:35 -0400 (EDT)
  • References: <bbn9tp$29l$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I don't know why it doesn't work; however, this works:

Plot[Evaluate[{Range[3]}],{x,0,1}];


Bob Hanlon

In article <bbn9tp$29l$1 at smc.vnet.net>, martin_rommel at yahoo.com (Martin) wrote:

<< Subject:	Explain this (error in Plot[Evaluate[Range[3]],{x,0,1}])
From:		martin_rommel at yahoo.com (Martin)
To: mathgroup at smc.vnet.net
Date:		Thu, 5 Jun 2003 11:35:21 +0000 (UTC)

I don't get it.

It boils down to plotting multiple lines:

Plot[{1,2,3},{x,0,1}] works.

That Plot[Range[3],{x,0,1}] does not work 
I understand (non-standard evaluation in 
Plot), but what is the problem with 

Plot[Evaluate[Range[3]],{x,0,1}] ?

Why does Evaluate not do its job for Range?
It does work with Table as in

Plot[Evaluate[Table[i,{i,3}]],{x,0,1}] 

I changed the Attributes of Range to match 
Table's, that did not fix it.

Some deeper reason or just a bug?

I am using Mathematica 4.0.1, W2k
 >><BR><BR>


  • Prev by Date: Re: Explain this (error in Plot[Evaluate[Range[3]],{x,0,1}])
  • Next by Date: Taking a function as a parameter of a function
  • Previous by thread: Re: Explain this (error in Plot[Evaluate[Range[3]],{x,0,1}])
  • Next by thread: Re: Explain this (error in Plot[Evaluate[Range[3]],{x,0,1}])