I have a very long formula. There are variables R_1, and R. Every time when I change the value of R. like R=1, and R_1 also change to 1_1. Is there any way to make R and R_1 be two completely individual variables? Thanks!
This problem is addressed by the Notation package, and in particular by its function Symbolize. Have a look at the Notation/tutorial/NotationSymbolizeAndInfixNotation tutorial.
I was dealing with infix functions and have just discovered this Notation package It’s really great!
For instance in time series, one could make the code more readable by using the following notation:
<< Notation`
Notation[ParsedBoxWrapper[
SubscriptBox["x_", "t_"]] \[DoubleLongLeftRightArrow] ParsedBoxWrapper[
RowBox[{"x_", "[[", "t_", "]]"}]]]