0
$\begingroup$

I want someting like:

f(x)=(imput field)

[Calculate] (button)

Result=(output field)

$\endgroup$
3
  • $\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
1
$\begingroup$

Try the following:

Clear["Golbal`*"];
x = 0; y = 0;
DoSomeCalculations[x_] := y = x^2;
InputField[Dynamic@x]
Dynamic@Button["Calculate", DoSomeCalculations[x]]
Print["output= ", Dynamic@y]
$\endgroup$

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.