Phil Carmody on Wed, 16 Jun 2004 10:37:36 +0200

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

Divisors bug in GP

I'm using an AFAICT undocumented call to divisors() with a 
factorisation as a parameter, rather than a single number. 
If this interface doesn't officially exist, I'd like to 
request that it be realised, as I could make very good use 
of it presently.

Anyway, it seems to 'break' its parameter.

phil@megaspaz:Oalpha-gmp-gcc$ ./gp-sta -q
(11:17) gp > f1=factor(1234);
(11:18) gp > f2=factor(1234567);
(11:18) gp > f3=concat(Mat(concat(f1[,1],f2[,1])),Mat(concat(f1[,2],f2[,2])));
(11:18) gp > divisors(f3);
(11:18) gp > f3
  ***   bug in GP (Segmentation Fault), please report
(11:18) gp > f3=1
  ***   bug in GP (Segmentation Fault), please report
(11:18) gp > kill(f3);
  *** kill: bug in GP (Segmentation Fault), please report

found on
                            GP/PARI CALCULATOR Version 2.2.7 (alpha)
                    i686 running linux (ix86/GMP-4.1.2 kernel) 32-bit version
                            compiled: Jan 11 2004, gcc-3.3.2 (Debian)

reproduced on 
          GP/PARI CALCULATOR Version 2.2.8 (development CHANGES-1.951)
          Alpha running linux (Alpha/GMP-4.1.2 kernel) 64-bit version
               compiled: Jun 16 2004, gcc-3.3.3 (Debian 20040422)


When inserting a CD, hold down shift to stop the AutoRun feature
In the Device Manager, disable the SbcpHid device.

Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!