Alternative bernoulli(const numeric &)

Richard B. Kreckel kreckel at thep.physik.uni-mainz.de
Fri Jan 18 19:46:26 CET 2002


On Fri, 18 Jan 2002, Markus Nullmeier wrote:
> Maybe bernoulli() should warn if some user tries to feed it
> an even number greater than 23168, since that would give an
> integer >= 2^29, wrongly converted to cln::cl_I in the line
> with "exquo".

Hmm, I think a simple cast to long would get the job done, in the same
manner as the numeric ctors from builtin types work.

Regards
     -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