John Nicol on Thu, 27 Jan 2005 19:42:11 +0100


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

Pari/GP 2-2-9.exe bug report


Hi there,

I noticed the following behavior(s) which seem buggy to me.  This is Pari-GP 2-2-9.exe.  I am running Windows XP Professional with 1GB of memory.

#1:  Factoring above and beyond 2^122 seems to encounter problems.
(10:18) gp > factor(2^122 -1)
  *** factor: tempfile /tmp/FREL.400.3056 already exists.

#2:  contfrac(sqrt(x)) and contfrac(sqrt(x),n) terminate earlier than I would expect from definition.  Rounding error?
This is a quadratic surd, with infinitely many terms and period 2.  Here I'm expecting arbitrarily many terms, but I only get 31.

(10:30) gp > contfrac(sqrt(15))
%22 = [3, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7]
(10:30) gp > contfrac(sqrt(15),,300)
%23 = [3, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7]

Thanks much!
John
-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm