When I investigate Fibonacci's series
fib[n_] := fib[n] = fib[n - 1] + fib[n - 2]
fib[0] = fib[1] = 1;
Block[{$RecursionLimit = 10^4}, fib[10^3]]
I can evaluate it for n=10^3. However, if I do the following
fib[n_] := fib[n] = fib[n - 1] + fib[n - 2]
fib[0] = fib[1] = 1;
Block[{$RecursionLimit = 5*10^4}, fib[10^4]]
I get a beep, the kernel quits and the message "The kernel Local has quit (exited) during the course of an evaluation" shows up.
Is this error beep due to memory restrictions (since I memorize too many values)? However, I don't see anything in the Linux' top overview.
ByteCount@DownValues@fibreturns about 7MB for me. Probably a local problem, try restarting the kernel. – LLlAMnYP Nov 16 '17 at 09:43Fibonacciwithout any worries about memory. – bill s Nov 16 '17 at 13:38