Tag Info

Hot answers tagged


You may try with this list of rules, in this order since your transformations are overlapping: rules = { Power[Subscript[X_,Subscript[a_,j_]], n_] :> Power[Subscript[\[Sigma],Subscript[a,j]], n]+ Power[Subscript[\[Mu],Subscript[a,j]], n], Times[rest1___, Subscript[X_,Subscript[a_,j_]], ...


Don't monkey with adding definitions to Power. Try something like StringReplace[ToString[1+ 3 c+ a^b, FortranForm], "**" -> "^"] "1 + a^b + 3*c"

Only top voted, non community-wiki answers of a minimum length are eligible