Bill Allombert on Fri, 30 Jan 2004 23:37:47 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: bernfrac() faster than bernreal()


On Fri, Jan 30, 2004 at 09:16:03PM +0100, Karim Belabas wrote:
> bernreal is an initialization function, not a 1-shot routine:
> 
> ? \p2000
>   realprecision = 2003 significant digits (2000 digits displayed)
> ? bernreal(2000);
> time = 10,070 ms.
> ? bernreal(2000);
> time = 0 ms.
> ? bernreal(1000);
> time = 0 ms.

Then I would suggest to update both the help and the documentation to 
reflect this:

? ?bernreal
bernreal(x): Bernoulli number B_x, as a real number with the current precision.

? ??bernreal
bernreal(x):

   Bernoulli  number  B_x,   as bernfrac,  but B_x is returned as a real number
(with the current precision).

   The library syntax is bernreal(x,prec).

Cheers,
Bill.