Although I am (remotely) running the following piece of code in a linux machine with 256 GB of ram, the error msg "Execution stopped: Stack limit reached" comes out
NestList:= proc(f, x, n::nonnegint)
local R:= rtable(0..n, [x]), k;
for k to n do R[k]:= simplify(f(R[k-1])) od:
I have tried to increase stacklimit issuing the command "kernelopts(stacklimit=256000)" but to no avail. Is there anything else I can do? A similar code run successfully in a mac with Mathematica.
PS. The default kernelopts(stacklimit) shows 8192 on the linux machine and but 32736 on the mac pro. I was expecting a higher number on the linux machine.