I'd like to be able to define functions (at least simple ones that Mathematica can otherwise understand) using TraditionalForm
; but this seems to require the use of an underscore.
For example, I'd like to be able to have something like
$$f(x) = x^2$$
correspond to
f[x_]:=x^2
but Mathematica seems to require
$$f(x\text{_}) = x^2$$
which goes a long way towards defeating the whole purpose.
Is there, perhaps, a way to define some formatting that's less obtrusive, and more "conventionally notational" than the underscore that could correspond to the TraditionalForm
underscore (and thus resolve any ambiguities)?
StandardForm
and useTraditionalForm
only for output formatting or in labels/text, etc. Besides, how will you differentiate the $f(x)$ inf[x_] = 2
andf[x] = 2
? Both are valid definitions, but your usage above makes it ambiguous. (note, I didn't down vote). $\endgroup$TraditionalForm
in the cases, like the one above, where the intent is clear. $\endgroup$Convert to Traditionnal Form
from theCell Menu
$\endgroup$