Mathematica 9 is now available
Student Support Forum
Student Support Forum > General > > "Checking dynamically updated variable"

Post Reply:
Email Address:

Please send email when my message is replied to.

Url (optional):
Message: view original message?
Attachment (optional):
Please answer this:8+1 =

Original Message (ID '233266') By PhysicsGuy:
In Response To 'Re: Re: Checking dynamically updated variable' --------- InputField[Dynamic[x]] // Print; f = Compile[{{x}}, x^2]; If[NumberQ[x], f[x] // Print] // Dynamic What is wrong with this code? Isn't it supposed to return square of the x when a number is given and nothing otherwise?