MathGroup Archive 2004

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

Search the Archive

Re: Why do two equivalent expression give different answers?


Use Evaluate as stated in the on-line help for Plot.

Plot[Evaluate[Table[t^c,{c,1,2}]],{t,0.5,1.2}];


Bob Hanlon

In article <c527dc$dtu$1 at smc.vnet.net>, chamster at home.se (Konrad Den Ende)
wrote:

<< I started Mathematica and went:


Plot[
Table[t^c, {c, 1, 2}],
{t,0.5, 1.2} ]
but it didn't like it.

So i computed Table[t^c, {c, 1, 4}] explicitly in an other cell and then
pasted the result into the expression as follows
Plot[
{t,t^2},
{t,0.5, 1.2} ]
and then it went well.

So i have two wonderings.
a) How come there's a difference?!
b) How do i make Mathematica accept what i try to do?


  • Prev by Date: Re: function that gives list of roots
  • Next by Date: Re: function that gives list of roots
  • Previous by thread: Re: Why do two equivalent expression give different answers?
  • Next by thread: Re: Why do two equivalent expression give different answers?