Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Why doesn't Slider[x] work?' topicStudent Support Forum > General > "Why doesn't Slider[x] work?"

Next Comment >Help | Reply To Topic
Author Comment/Response
Otto Murphy
11/27/07 8:50pm

Why do you have to wrap x in Dynamic[] if you want the slider to update it?

i.e. Slider[Dynamic[x]] instead of Slider[x]

It seems to me that Slider[] would be able to update the value of x without the Dynamic[]. So in a notebook like this:

x=0;
Slider[x]
Dynamic[x]

The slider should update x and these new values should be reflected in the dynamic expression.

Obviously this isn't how mathematica works because that program doesn't work...

Could anyone explain the underlying mechanism here?

Thanks a lot!


URL: ,

Subject (listing for 'Why doesn't Slider[x] work?')
Author Date Posted
Why doesn't Slider[x] work? Otto Murphy 11/27/07 8:50pm
Re: Why doesn't Slider[x] work? yehuda ben-s... 12/03/07 02:31am
Next Comment >Help | Reply To Topic