On Wed, Oct 20, 2010 at 09:10:37PM +0200, bodr...@mail.dm.unipi.it wrote: > Package: pari-gp > Version: 2.3.5-1 > Severity: normal > > ispower(x) should return the maximal $n$ such that an $a$ exists with > $a^n=x$. > But the following example session shows that this is not correctly computed. > > $ /usr/bin/gp -q > ? ?ispower > ispower(x,{k},{&n}): true (1) if x is a k-th power, false (0) if not. If n is > given and a k-th root was computed in the process, put that in n. If k is > omitted, return the maximal k >= 2 such that x = n^k is a perfect power, or 0 > if no such k exist. > ? ispower(2^413) > 59
Hello Marco, this is a known problem in PARI 2.3.4, which is fixed in PARI 2.3.5. You are reporting that you are using gp 2.3.5-1, but you are still using PARI 2.3.4: > Versions of packages pari-gp depends on: > ii libpari2-gmp 2.3.4-1 PARI/GP Computer Algebra Please upgrade libpari2-gmp to 2.3.5-1 to get PARI 2.3.5 which fix this bug >From the 2.3.5 CHANGES file: 8- ispower broken due to insufficient precision [#916] [F40] Cheers, -- Bill. <ballo...@debian.org> Imagine a large red swirl here. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org