Re: Powers too slow?
Ilya Zakharevich <[email protected]>
| Newsgroups | gmane.comp.mathematics.pari.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Dec 14, 2023 at 06:40:37PM -0800, Ilya Zakharevich wrote: > It seems that some powers take 2x the time they should take: > > (18:31) gp > localprec(1111111); 1111111^(31/10); > time = 453 ms. > (18:31) gp > localprec(1111111); 1111111.^(1/10)*1111111^3; > time = 234 ms. Oups, this mixes integers and floating point bases! However, with pure integer bases this only becomes slightly more pronounced. With pure floating point bases there is a weaker 1.75x slowdown. Sorry, Ilya