Re: Explain this (error in Plot[Evaluate[Range[3]],{x,0,1}])
- To: mathgroup at smc.vnet.net
- Subject: [mg41842] Re: Explain this (error in Plot[Evaluate[Range[3]],{x,0,1}])
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Fri, 6 Jun 2003 09:51:27 -0400 (EDT)
- References: <bbn9tp$29l$1@smc.vnet.net>
- Reply-to: "Allan Hayes" <hay at haystack.demon.co.uk>
- Sender: owner-wri-mathgroup at wolfram.com
"Martin" <martin_rommel at yahoo.com> wrote in message news:bbn9tp$29l$1 at smc.vnet.net... > 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 > Martin, This is a bug: A workround is Plot[#,{x,0,1}]&[Range[3]] -- Allan --------------- Allan Hayes hay at haystack.demon.co.uk Voice: +44 (0)116 241 8747 Fax: +44 (0)870 164 0565