Karim Belabas on Thu, 09 Mar 2023 17:00:47 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: Max Alekseyev <maxale@gmail.com>
- Subject: Re: logint() bug?
- From: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>
- Date: Thu, 9 Mar 2023 16:59:13 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1678377547; c=relaxed/relaxed; bh=ufbFwWWxcs+pAfJNiM1ULDiMfqi/RSmyH95z4oFYiv8=; h=DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: Mail-Followup-To:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To; b=gTWIFqBbr4R1A7DdbVF9JyaW6oAFpPOemMiRZ3ALmpotL8gICpLOquA6UxnWKNGsWkxVZ8jkVYRosLqYKpHlpKhRjtYvrqO2KbZQx5kB1U6GFLlAj8Gxo02aqrtrmrN2lLOKRjGBsiklSBprbTlg3FHLH2eDspG/YIa7yWpjVcoY5D6vGYsQemWdqk6VJ780RQxZuBOmPDvl995iAVsyBpmnqb+13dnUsB35gMk4YGegmoL6SuLFJnmsaYgucifOL+vTqqy62+NI8r4Eo7pK5PVxcBrm22okmOPqySssCIUTRAhF9Uluxu/4m0+fKSRWuIvyNoby8tvWaXwHx6Hb5+u2lE/rrw2iRWsIc0rHUm/2OjXoijdpaFPSnwWqBfR4l0BQ6jEI7Ixlji/YNXXVea6/PSXAboLlKm4DTsGNI5koYTjb1i8dGLj2N45vrzybEgNDBTCg5UspQwXj/euz2tAe6ZV0b6X9DDDgwKvhnfB++OzrQWYD5XPJZfabJjpGU72Ou7ZkOnUlNxX0nf9YW5l5ZZInW742Jrzaw87a5IthXg181l44gbc2dqj5J5cOf7VuQcOoCVN19XpE9YidDPqcHQhY7Bky1U8DR5HLrDtXUlmz8NOoqF1GpqiitItTELxIMzkRzvH8Rffz8pfskVgHkS1enreMIHUNP5bYizM=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1678377547; cv=none; b=e3Y6BJMVV5UQb1quoaA1hnF0G8XLWRK2ESYlFzZl6CI92rZ0uZPfUgnTdVXzwAM9QE5kvt4tfcXW3VwEW5nmtCAOvr71pADji2uUy23Ws98/IOOV70mGc94NkRCP+oshjlmblqLDuS1fBLr12InNZXNuXVzUEJZ2xU0wp68jtBgS+lxVEQfwCMbwPaKy3ipCe0zULDOZ3ujPdm6W2v/I/O0vM6J8pfKJRTNtvJeLn9CO0T660+1dGrimqgJdfiQvztfo5fa5quxJ/hPrMBRWUtuJnpLxm0tRxH5q5Fc205v7j24tkDNBQhJhC0F7PY5kIh3QRu4TgXnQX1qxTlkTqJxzTU8qQMb+/CaoNGlFHpDG/iveRQ6sbkUiFRIZYrqQoWBC2fklrclpd5nYTCELN66GEAYAw8p86dLrU0HaQFhOTDF6Vx+QL5M1HG55p20by83XfVXK55ct32TjkLB5VMX4h4GJYOrLTh1IIpR/JmeGG9bEqD/wd9HoIf4sXesl/Kx4LqjjFOa9du8aNr/c83Abv5QC+22ZMrwDU5I/RJypLBE/olY/62FQwd2MyW0RT6bQYXQ/0xi4LHPdfyAbwscLOHcXNWxI/avkbSPhddE207nSnRU+Zo2nJYvi7wy3ygWESQQyB9jHvhpleNY8WXNJdmGGmCyiCrklEfys5vc=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Cc: pari-users@pari.math.u-bordeaux.fr
- Delivery-date: Thu, 09 Mar 2023 17:00:47 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1678377547; bh=ufbFwWWxcs+pAfJNiM1ULDiMfqi/RSmyH95z4oFYiv8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m260jgRHeDuMCuWFEzoruRO9d1cylP1w4VQDvlqVcBDOoaoY3+FR+iPz47SWm9syV LHvp/mMPsZdHGj+eAktg/RyIncuACrM49D5BELwX1TBW5IB+tFh6IBuQP1NrFsoYqF Dzho+MqUHfOJb6pYVsHWFQbzTkELIFMU9ziJF59OYy+s2uXcE+mTnAcHgwZjmTgQ7B jcZy+IAb/zElKOWoNbHgmC4ZPfm2NnhDxZ/EOjNpaYZBl8Ar00GKBH0q5+g0KH5nka WBxMxIJcaec7IqMXbHVGeY+BW8GXonWduzIGQuopoyS8WdoOLO56/dJEXVQcv8OjCU 8KCpv4rMPSgWRWsVLsn0cKp7bQcIVhyaiNIHJ3eaivJDbmzgUM/DOVavHq9vFMBTx1 kzhpr3j04macqhbLOKOttnGMLCWSbhhl3s7YV2xpqxE81buUp4j978Fopdv6c0AiQI v99mWkMk1LmlVP2TYsarBuvkf5gZoOLZ6emFfld6qEXQDVPChkS1E8Tykv7fYXeWs0 an64raRm2R+f0IO9Gka06kRfTrA5oc9o1uQlpTZ+HZm4WVEnOlHcnS0SduACYId9H6 HaGIF64AiUCtj3LrJuD1LmFlio6Es6FgBiHeV4m1/i5iidakrGfCuQNeMzsK1GgbX4 9s2prmaTqyA1T0CfiXaWyQ7Y=
- In-reply-to: <CAJkPp5PEYTbEnzwvJ4mi8w7VKGnoMDb6LkpdCMZMLco9aKhcYQ@mail.gmail.com>
- Mail-followup-to: Max Alekseyev <maxale@gmail.com>, pari-users@pari.math.u-bordeaux.fr
- References: <CAJkPp5M930tybTN9LCgCqTP2RAjc0_ShkgED0GKHLscS-0jH6g@mail.gmail.com> <ZAmeUzVA3bp5n55r@seventeen> <ZAmgmaDEoIp18AIu@math.u-bordeaux.fr> <CAJkPp5PEYTbEnzwvJ4mi8w7VKGnoMDb6LkpdCMZMLco9aKhcYQ@mail.gmail.com>
* 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/
`