Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Output from Dynamic' topicStudent Support Forum > General > "Output from Dynamic"

Next Comment >Help | Reply To Topic
Author Comment/Response
Thor
11/20/11 07:03am

Hi,
I'm trying to figure out what Dynamic actually yields:

In this example, how do you get a numerical value from z that can be used for further operations?

I tried First[z]+1 which computes an answer, but it is not updated when z changes.

DynamicModule[{x = 0},
z = Dynamic[If[x > 0, -100, 200]];
List[Slider[Dynamic[x], {-1, 1, 1}], Dynamic[x], z, z + 1]]

Thanks
Thor

URL: ,

Subject (listing for 'Output from Dynamic')
Author Date Posted
Output from Dynamic Thor 11/20/11 07:03am
Re: Output from Dynamic Quinn McKinsey 11/27/11 10:51pm
Re: Re: Output from Dynamic Thor 11/29/11 2:20pm
Re: Re: Re: Output from Dynamic Quinn McKinsey 11/29/11 9:57pm
Re: Re: Re: Re: Output from Dynamic Thor 11/30/11 2:04pm
Next Comment >Help | Reply To Topic