Alternative bernoulli(const numeric &)

Richard B. Kreckel kreckel at thep.physik.uni-mainz.de
Fri Jan 18 18:05:24 CET 2002


On Fri, 18 Jan 2002, Markus Nullmeier wrote:
> being unware of GiNaC's implemetation, I wrote my own
> Bernoulli number function after reading Peter Stone's
> straightforward description in his Maple Worksheet
> http://minyos.its.rmit.edu.au/~e05254/MAPLE/ENGMATH/TAYLOR/BERNUM.MWS
> 
> Later I adapted my function to bernoulli() in numeric.cpp, as it
> turned out to be about twice as fast as GiNaC 1.0.3 (gcc 2.95, -O2).
> 
> Thus maybe you'll find the enclosed patch useful in some
> way or the other. Hopefully no hidden bugs remain.
[...]

Cool.  Fast.  It's included now.

Thanks!
    -richy.
-- 
Richard B. Kreckel
<Richard.Kreckel at Uni-Mainz.DE>
<http://wwwthep.physik.uni-mainz.de/~kreckel/>





More information about the GiNaC-devel mailing list