Artifact 2923605349af2644b4cac6e91c896c60c5fb9efddad22cb88455fab93afeb94a:
- File
r35/src/specfaux.red
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1267) [annotate] [blame] [check-ins using] [more...]
- Executable file
r36/src/specfaux.red
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1267) [annotate] [blame] [check-ins using]
module specfaux; % (Mostly) Auxiliary functions for % Special functions package for REDUCE. % Author: Winfried Neun Feb 1993 ... create!-package ('(specfaux sfbdata), '(contrib specfn)); load!-package 'specfn; endmodule; module sfbdata; % Generate necessary data for Bernoulli computation. % Author: Winfried Neun. fluid '(compute!-bernoulli); global '(!*force); flag('(force),'switch); flag('(on),'eval); on force; symbolic macro procedure mk!-bernoulli u; <<for i := 1:300 do retrieve!*bern i; list('quote, bernoulli!-alist) >>; % When I read in save!-bernoulli the macro mk!-bernoulli() will get % expanded. This is because of the RLISP flag "*force". The effect % will be that the definition of save!-bernoulli() is in effect % just bernoulli!-alist := '((....)) symbolic procedure save!-bernoulli(); bernoulli!-alist := mk!-bernoulli(); % I want to execute save!-bernoulli() just once to initialize the % table. That way even if I am running interpreted the painfully % slow initial calculation of the table gets done only once when % I first process this chunk of code. save!-bernoulli()$ compute!-bernoulli := t; off force; remflag('(on),'eval); endmodule; end;