Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*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 1998

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

Search the Archive

Re: Is it a BUG?



Hi Igor:

Plot has the attribute HoldAll.  You can see this with:

Attributes[Plot]

This means that it holds all its arguments unevaluated.  You can force
the evaluation of k by:
Plot[Evaluate[k],{x,-5,5}]

Cheers,

Des Penny


Igor Gribanov wrote:

> When I try to plot a number of functions like this:
> Plot[{x,x^2,x^4},{x,-5,5}]
>
> it works,
> but if I do it another way:
> k={x,x^2,x^4}
> Plot[k,{x,-5,5}]
>
> then it doesn't plot the graphics.
> Is it a bug or not?
>
> Sincerely,
> Igor Gribanov
> http://www.geocities.com/SouthBeach/Palms/3050





  • References:
  • Prev by Date: Re: Which Communications to Use for MathLink on NT?
  • Next by Date: Interpolation ...
  • Prev by thread: Is it a BUG?
  • Next by thread: RE: Is it a BUG?