0
$\begingroup$

I'm trying to understand and use FormFunction. I go to the local documentation on my system and this is what it shows:

enter image description here

I execute the commands for the definition of form and execute form[]. This is what I get:

enter image description here

What do I do to get FormFunction to work? I've tried defining f by setting

f[x_]:=x

first. But it doesn't help.

$\endgroup$
  • 1
    $\begingroup$ Do you have TraditionalForm formatting on? FormFunction will only work with StandardForm. $\endgroup$ – b3m2a1 May 25 '17 at 15:55
  • $\begingroup$ I do have that as the default output in my own stylesheets but not on the documentation. When I wrapped the command inside StandardForm[ ] I got it to work. Thanks for letting me know this. I don't see this fact in the documentation. $\endgroup$ – sykh May 25 '17 at 17:00
  • $\begingroup$ Most programming functionality is built to work with StandardForm, so it makes sense. Format can take a second argument to specify the format (StandardForm or TraditionalForm), and clearly that's what they did here. $\endgroup$ – b3m2a1 May 25 '17 at 17:02

Your Answer

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

Browse other questions tagged or ask your own question.