On 6/14/07, Martin DRUON <martin.druon at wanadoo.fr> wrote:
> I would like to know if it's possible to change the amount of memory reserved for maxima
> (or reserved for clisp) because when I run a simple program onto a list
> (only 3,844 elements !!!) it craches and return a "stack overflow Lisp"
> (but it works for 3,600 elements) !
Martin, please tell us more about this problem. Is the error coming
from a Maxima built-in function or a function you wrote?
Maybe you can show us the code in question.
Maxima doesn't have any capability to turn recursive function
calls into iteration, unfortunately. Perhaps an unbounded recursion
has something to do with your problem.
> Can I change the amount of memory directly in maxima ?
> if isn't, how I can change the call to clisp at the begining of maxima
> to increase the amount of memory (I read that the default value for
> clisp is 2MB !) ?
In cases that I can remember, running out of memory in
Maxima is a symptom of a deeper underlying problem
(e.g. an algorithm for which memory use increases exponentially)
so just allocating more memory rarely solves the problem.
All the best
Robert Dodier