New answers tagged

1

First of all, Infix isn't a function: it just a formatting wrapper which affects printing, but not evaluation (like NumberForm, InputForm etc.): Infix[f1[x1, y1, z1]] x1 ~f1~ y1 ~f1~ z1 % // FullForm Infix[f1[x1, y1, z1]] Likewize StandardForm is also just a wrapper with the only difference that it is stripped off if the output is printed: sf = ...


0

How about this? ToExpression@StringReplace[ StringTrim@ToString@"(1\!\(\*SuperscriptBox[\()\), \(2\)]\)", pow_ ~~ "\n" ~~ base__ :> base <> "^" <> pow ] 1


Top 50 recent answers are included