Re: question about evaluation and Manipulate
- To: mathgroup at smc.vnet.net
 - Subject: [mg78408] Re: [mg78300] question about evaluation and Manipulate
 - From: klamser <klamser at t-online.de>
 - Date: Sun, 1 Jul 2007 03:31:22 -0400 (EDT)
 - References: <200706280816.EAA19276@smc.vnet.net>
 
f[a_,x_]=a x;
Manipulate[Plot[f[a,x],{x,0,1}],{a,0,1}]
Yaroslav Bulatov schrieb:
> 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?
>
>
>
>