I'm trying to create a list of symbols called "x" for calculating symbolic gradients of some functions, so I write:
x = Table[Symbol["x"][i], {i, 1, 3}]
why it complains $RecursionLimit: Recursion depth of 1024 exceeded
?
When I change the expression name from x
to a
, it works
a = Table[Symbol["x"][i], {i, 1, 3}]
Outputs
{x[1], x[2], x[3]}
I knew c++
and python
, but feel really hard to understand what happened when I type these symbol creation sentences in mathematica
.
Is there any relevant document to read or learn about this topic? Any help is appreciated.