Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Question about Manipulate
Replies: 2   Last Post: Nov 10, 2011 6:28 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
mailcwc@gmail.com

Posts: 52
Registered: 7/14/05
Question about Manipulate
Posted: Nov 9, 2011 5:58 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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?




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.