| 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? |
|