I want someting like:

f(x)=(imput field)

[Calculate] (button)

Result=(output field)

  • $\begingroup$ Free player is restricted to numerical input fields but other than that I do not foresee problems. Have you tried anything? Where are you stuck? $\endgroup$ – Kuba Sep 20 '20 at 22:25
  • $\begingroup$ @Kuba I absolutely do not know how to do this. $\endgroup$ – Anixx Sep 20 '20 at 23:35
  • $\begingroup$ Please see tutorial/CustomInterfaceConstructionOverview. $\endgroup$ – Kuba Sep 21 '20 at 6:30

Try the following:

x = 0; y = 0;
DoSomeCalculations[x_] := y = x^2;
Dynamic@Button["Calculate", DoSomeCalculations[x]]
Print["output= ", Dynamic@y]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.