Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: question about evaluation and Manipulate

  • To: mathgroup at
  • Subject: [mg78375] Re: [mg78300] question about evaluation and Manipulate
  • From: Bob Hanlon <hanlonr at>
  • Date: Fri, 29 Jun 2007 05:50:47 -0400 (EDT)
  • Reply-to: hanlonr at

f[a_, x_] = a*x;
Manipulate[Plot[f[a, x], {x, 0, 1}], {a, 0, 1}]

Bob Hanlon

---- Yaroslav Bulatov <yaroslavvb at> wrote: 
> I'm trying to manipulate a plot where the plotted expression is a
> symbol that should be evaluated before plotting.
> f[x_] = a x;
> Manipulate[Plot[f[x], {x, 0, 1}], {a, 0, 1}]
> This doesn't work, presumably because Plot doesn't have access to the
> value of "a" set by Manipulate. So I'd like to evaluate the first
> argument Plot, but not Plot itself before Manipulate is executed, is
> there a way to do this?

  • Prev by Date: How does one put "time stamps" on output in Veriosn 6???
  • Next by Date: Re: Integration variables
  • Previous by thread: Re: question about evaluation and Manipulate
  • Next by thread: delete a palette ?