Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

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>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • 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

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


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