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 ispower(2^n) should obviously return n, for any integer n>1. If I recompile the package from upstream, I see no errors. Here is a correct session: $ ./gp Reading GPRC: /etc/gprc ...Done. GP/PARI CALCULATOR Version 2.3.5 (released) i686 running linux (ix86/GMP-4.3.2 kernel) 32-bit version compiled: Oct 20 2010, gcc-4.4.5 20100909 (prerelease) (Debian 4.4.4-14) (readline v6.1 enabled, extended help available) Copyright (C) 2000-2006 The PARI Group PARI/GP is free software, covered by the GNU General Public License, and comes WITHOUT ANY WARRANTY WHATSOEVER. Type ? for help, \q to quit. Type ?12 for how to get moral (and possibly technical) support. parisize = 4000000, primelimit = 500000 ? for(i=2,1000,if(i!=ispower(2^i),print(i))) ? No "i" was printed, this is correct. But I used a different gcc version and ./Configure decided to compile for "i686", not "i486"... Best regards, Marco Bodrato -- System Information: Debian Release: 5.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.29-tm290 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages pari-gp depends on: ii libc6 2.11.1-3 Embedded GNU C Library: Shared lib ii libpari2-gmp 2.3.4-1 PARI/GP Computer Algebra System sh ii libreadline6 6.1-3 GNU readline and history libraries ii libx11-6 2:1.2-1 X11 client-side library pari-gp recommends no packages. Versions of packages pari-gp suggests: ii pari-doc 2.3.5-1 PARI/GP Computer Algebra System do ii pari-extra 2.1-1 PARI/GP Computer Algebra System ex pn pari-gp2c <none> (no description available) -- no debconf information -- http://bodrato.it/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org