Consider the following code that repeatedly differentiates a function:
test = RecurrenceTable[ {g[n] == D[g[n - 1], x], g[0] == x^10},
g, {n, 0, 5}]
This code repeatedly takes differentiation. However, the output is
RecurrenceTable[{g[n] == 0, g[0] == x^10}, g, {n, 0, 5}]
Why my code does not work? In particular, why my differentiation changed to 0? (For this simplified example, I can use FoldList
, etc. However, what I want to do is quite complicated.)
g[n - 1]
does not explicitly containx
. $\endgroup$NestList[D[#, x] &, x^10, 5]
? $\endgroup$RecurrenceTable
because it has very limited capabilities. $\endgroup$