When i use Replace[]
or /.
, I find that Mathematica does not treat $x_{j}$(Subscript[x, j]
) as a variable compared to $xj$. I was wondering, if there is a way to make $x_{j}$ an ordinary variable name like $xj$, because i think
$x_{j}$ is standard mathematical notation compared to $xj$.
$\begingroup$
$\endgroup$
3
Format[x[n_]] := Subscript[x, n]
then the indexed variablex[j]
will display as a subscripted variable. $\endgroup$