RE: Why do two equivalent expression give different answers?
- To: mathgroup at smc.vnet.net
- Subject: [mg47406] RE: [mg47396] Why do two equivalent expression give different answers?
- From: "Owen, HL (Hywel)" <H.L.Owen at dl.ac.uk>
- Date: Thu, 8 Apr 2004 05:46:04 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
You need to use Evaluate:
Plot[Evaluate[Table[t^c, {c, 1, 2}]],
{t, 0.5, 1.2} ]
works.
> -----Original Message-----
> From: chamster at home.se [mailto:chamster at home.se]
To: mathgroup at smc.vnet.net
> Sent: 08 April 2004 01:41
> To: mathgroup at smc.vnet.net
> Subject: [mg47406] [mg47396] Why do two equivalent expression give different
> answers?
>
>
> 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?
>
> --
>
> Kindly
> Konrad
> ---------------------------------------------------
> May all spammers die an agonizing death; have no burial places;
> their souls be chased by demons in Gehenna from one room to
> another for all eternity and more.
>
> Sleep - thing used by ineffective people
> as a substitute for coffee
>
> Ambition - a poor excuse for not having
> enough sense to be lazy
> ---------------------------------------------------
>