MathGroup Archive 2011

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

Search the Archive

Re: Question about Manipulate


Neither.  In the first you put "f" instead of "f[x]".  Simple mistake, simple fix. :)

Cheers
david.

On Nov 9, 2011, at 5:24 AM, mailcwc at gmail.com wrote:

> I tried the following code in Mathematica 8.0
>
> Clear["Global`*"]
> f = Sin[a x + b]
> Manipulate[Plot[f, {x, 0, 4 \[Pi]}], {a, 0.5, 2}, {b, 0, 2 \[Pi]}]
>
> The Manipulate block is showed, but the Sin function is not plotted.
>
> When I replace f in the third line with its definition,
>
> Clear["Global`*"]
> Manipulate[ Plot[Sin[a x + b], {x, 0, 4 \[Pi]}], {a, 0.5, 2}, {b, 0, 2
> \[Pi]}]
>
> The Sin function is plotted.
>
> Is this a bug or a limitation in Mathematica?
>




  • Prev by Date: nested findroot
  • Next by Date: Re: Graphics << Implicit vs ContourPlot
  • Previous by thread: Question about Manipulate
  • Next by thread: Re: Question about Manipulate