MathGroup Archive 1995

[Date Index] [Thread Index] [Author Index]

Search the Archive

Limiting mma caching (??)


Hi,

I've the following query / suggestion.

Is it possible to limit the amount of caching that mma does?

For example:

factorial[n_] := factorial [n] = n * factorial[n-1]
factorial[0] = 1;

With factorial[5], there are five numbers held in memory.

In larger recursions this chews up memory quite fast.
A useful feature would be to be able to limit mma to holding the last 'x'
numbers in memory.
Is it possible to implement such a feature, or would it have to be built in
by Wolfram?

Any responses appreciated.

Regards
Mark
   Mark Van de Vyver
_____________________________________________________________________________
   Mark Van de Vyver
   Department of Accounting and Finance      Phone:  (61) (09) 380-2510      
   University of Western Australia           Fax:    (61) (09) 380-1047        
   Nedlands   6907                           e-mail: mvyver at ecel.uwa.edu.au 
   Perth
_____________________________________________________________________________




  • Prev by Date: Notebook with Integral-sign
  • Next by Date: Question about thread
  • Previous by thread: Limiting mma caching (??)
  • Next by thread: Re: Limiting mma caching (??)