Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2011

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

Search the Archive

Re: Question about Manipulate

  • To: mathgroup at
  • Subject: [mg122795] Re: Question about Manipulate
  • From: Richard Hofler <rhofler at>
  • Date: Thu, 10 Nov 2011 06:56:31 -0500 (EST)
  • Delivered-to:
  • References: <>


If you really want to follow the steps you show in your original post, then you can make f a function.

f[a_,b_]:=Sin[a x+b]
Manipulate[Plot[f[a,b],{x,0,4 \[Pi]}],{a,0.5,2},{b,0,2 \[Pi]}]


-----Original Message-----
From: mailcwc at [mailto:mailcwc at]
Sent: Wednesday, November 09, 2011 6:25 AM
To: mathgroup at
Subject: [mg122795] Question about Manipulate

I tried the following code in Mathematica 8.0

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,

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: Re: Question about Manipulate
  • Next by Date: Re: FinancialData - how to find ticker symbols?
  • Previous by thread: Re: Question about Manipulate
  • Next by thread: Re: Question about Manipulate