1
$\begingroup$

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$.

$\endgroup$
3
  • 2
    $\begingroup$ You could symbolize it using notation package. Iam sure this was asked before if you search this site. $\endgroup$
    – Nasser
    Commented Apr 16, 2023 at 3:46
  • 1
    $\begingroup$ Use Format[x[n_]] := Subscript[x, n] then the indexed variable x[j] will display as a subscripted variable. $\endgroup$
    – Bob Hanlon
    Commented Apr 16, 2023 at 4:11
  • 1
    $\begingroup$ Also see mathematica.stackexchange.com/q/30849/1871 mathematica.stackexchange.com/q/30884/1871 $\endgroup$
    – xzczd
    Commented Apr 16, 2023 at 4:32

0

Browse other questions tagged or ask your own question.