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

Post Reply:
Name:
Email Address:

Please send email when my message is replied to.

Url (optional):
Subject:
Message: view original message?
Attachment (optional):
Please answer this:5+2 =



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?