Phil Carmody on Sun, 26 Jun 2005 12:11:36 +0200


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

Re: strange contfrac behavior


--- Alain SMEJKAL <a.smejkal@free.fr> wrote:
> Dear list,
> 
> I cannot make sense of these tests (Version 2.2.11 (development)),
> especially the first one :
> 
> ? F7=2^2^7+1;
> 
> ? \p140
>    realprecision = 144 significant digits (140 digits displayed)
> ? contfrac(2*sqrt(F7))
>   *** contfrac: impossible assignment I-->I

Looks like that appeared between:
<<<
phil@nonospaz:dev$ /usr/local/bin/gp-2.2
Reading GPRC: /home/phil/.gprc ...Done.

                    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)
                (readline v4.3 enabled, extended help available)
[...]
(12:03) gp > F7=2^2^7+1;
(12:04) gp > \p140
   realprecision = 144 significant digits (140 digits displayed)
(12:04) gp > contfrac(2*sqrt(F7))
%2 = [36893488147419103232, 18446744073709551616, 73786976294838206464,
18446744073709551616]
>>>

and

<<<
phil@nonospaz:dev$ gp
Reading GPRC: /home/phil/.gprc ...Done.

          GP/PARI CALCULATOR Version 2.2.8 (development CHANGES-1.999)
                i686 running linux (ix86 kernel) 32-bit version
           compiled: Sep  9 2004, gcc-3.3.4 (Debian 1:3.3.4-6sarge1)
                (readline v4.3 enabled, extended help available)
[...]
(12:05) gp > F7=2^2^7+1;
(12:06) gp > \p140
   realprecision = 144 significant digits (140 digits displayed)
(12:06) gp > contfrac(2*sqrt(F7))
  *** contfrac: impossible assignment I-->I
>>>

Perhaps someone can binary chop further?

Phil

()  ASCII ribbon campaign      ()    Hopeless ribbon campaign
/\    against HTML mail        /\  against gratuitous bloodshed

[stolen with permission from Daniel B. Cristofani]

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com