Re: Why do two equivalent expression give different answers?

• To: mathgroup at smc.vnet.net
• Subject: [mg47404] Re: Why do two equivalent expression give different answers?
• From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
• Date: Thu, 8 Apr 2004 05:46:02 -0400 (EDT)
• Organization: Universitaet Leipzig
• References: <c527dc\$dtu\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Hi,

Plot[] has the attribute HoldAll and you must force
Mathematica to evaluate the arguments in the
first case

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

Regards
Jens

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

```

• Prev by Date: Re: Why do two equivalent expression give different answers?
• Next by Date: RE: Why do two equivalent expression give different answers?
• Previous by thread: Re: Why do two equivalent expression give different answers?
• Next by thread: RE: Why do two equivalent expression give different answers?