Artifact f1133f760d4cdfd5edb43f4d196979170c6068cd6e781f2fdeff91ac52e93137:
- Executable file
r37/packages/specfn/sfbdata.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: 1026) [annotate] [blame] [check-ins using] [more...]
- Executable file
r38/packages/specfn/sfbdata.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: 1026) [annotate] [blame] [check-ins using]
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;