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)?
StandardFormand useTraditionalFormonly for output formatting or in labels/text, etc. Besides, how will you differentiate the $f(x)$ inf[x_] = 2andf[x] = 2? Both are valid definitions, but your usage above makes it ambiguous. (note, I didn't down vote). – rm -rf♦ Nov 12 '12 at 1:01TraditionalFormin the cases, like the one above, where the intent is clear. – raxacoricofallapatorius Nov 12 '12 at 1:05Convert to Traditionnal Formfrom theCell Menu– chris Nov 12 '12 at 7:28