Karim Belabas on Thu, 09 Mar 2023 17:00:47 +0100


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

Re: logint() bug?


* Max Alekseyev [2023-03-09 12:08]:
> I'd assume logint(x,b) is just an accurate implementation of
> floor(log(x) / log(b) )

It's not. Apart from the obvious special case b = 2 (where we use exponent()),
logint uses an all-integral binary splitting method to compute the bits
of e = logint(x,b) one by one.

Cheers,

    K.B.
--
Pr Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique
Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77
http://www.math.u-bordeaux.fr/~kbelabas/
`