"remembering" in recursion



Thanks a lot

I use different operating systems.

In particular I would be happy if Maxima
could see the whole available memory
in Debian (and similar distributions such as Ubuntu)
On the Debian computer I have kernel 2.6.18-6-amd64.
I use gcl with Maxima.

Has anyone found a solution for any
operating system and any lisp version?


   Fabrizio


>>
>> 
> yes.   subscripted definitions are "memoized".
>
> f[x]:= x*f[x-1]
> f[0]:1
>
> if you compute f[50], all values f[1]  through f[50] are remembered.
> Computing f[51]  takes only one step.
>
>>  ------------------------------------------
>>
>>  I also have a question on the quantity of available memory.
>>  If Maxima is used, say, with gcl, how do I get Maxima to
>>  see all the available memory (in my case 2 Gbytes).
>>  Is this a Lisp restriction?
>>  Should I configure gcl in oder to get the whole ram in Maxima? Could
>>  someone describe how to do that with gcl or any other lisp?
>> 
> I think you have to specify your operating system.  Most people who think 
> they need more memory really need to change their algorithms.
> Sometimes even the best algorithm runs out of memory, but many symbolic tasks 
> use memory in a very
>>     Thanks
>>
>>     Fabrizio
>>
>>  _______________________________________________
>>  Maxima mailing list
>>  Maxima at math.utexas.edu
>>  http://www.math.utexas.edu/mailman/listinfo/maxima
>> 
>
>