Tag Info

New answers tagged

1

Try something more like this: q1 /. {ToExpression["q" <> "1"] -> 2} The thing your bit of code is doing is trying to find the string q1 instead of the variable with the name q1. Clarification: When you just type the letters q1 in Mathematica, it treats the thing like an expression or a single variable. That is, you can assign it a value such ...



Top 50 recent answers are included