# Tag Info

2

This may be unhelpful but motivate. Assuming the purpose is education you could use: ntn[u_] := FlipView[{Style[u, 20], Row[{Style[ToExpression[u], 20]}, Background -> LightRed]}] Examples (in gif):

2

As requested: Postfix[foo//bar] will output foo//bar And as you noted in the comment reply, there are equivalents for infix and prefix. Format might also be of interest...

0

Actually $\partial _t f[t]$ in Mathematica is interpreted as D[f[t],t] by default. You don't need to redefine it. Considering $\partial _t = D[f,t]$ given by the OP is only an example of what the OP wants to do, I regard this question as a way to redefine the basic rules for the input of the expression. You can define the low-level input rules by using ...

0

When I read this question, it seems to be asking for set-delayed. For example, say we want to calculate D[f[t],t] over and over but want to give it a name like q. Then q := D[f[t], t] does this. If you don't have f defined then q Derivative[1][f][t] If f is defined, say f[t_] := t^2 q 2 t

2

With the notation package something like this is easy. I would never use this by myself, because IMO such sugar can easily introduce bugs and undesired behavior if one is not cautious. I will paste a screenshot so that you see how I used the Notation package, but first of all you have to load it: << Notation then you can use Testing it ...

Top 50 recent answers are included