Re: question about evaluation and Manipulate

*To*: mathgroup at smc.vnet.net*Subject*: [mg78347] Re: question about evaluation and Manipulate*From*: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>*Date*: Thu, 28 Jun 2007 06:35:00 -0400 (EDT)*Organization*: Uni Leipzig*References*: <f5vqp7$iqj$1@smc.vnet.net>*Reply-to*: kuska at informatik.uni-leipzig.de

Hi, you mean f[x_] := a x; Manipulate[ Dynamic@ Plot[ f[x], {x, 0, 1}, Evaluated -> True, PlotRange -> {{0, 1}, {0, 1}}], {a, 0, 1}, LocalizeVariables -> False] Regards Jens Yaroslav Bulatov 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? > >