Phil Carmody on Wed, 19 Nov 2003 17:13:38 +0100


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

contfrac bug?


You-know-who says:
In[1]:= ContinuedFraction[Pi/2, 2]
Out[1]= {1, 1}
In[2]:= ContinuedFraction[Pi/2, 3]
Out[2]= {1, 1, 1}
In[3]:=  ContinuedFraction[Pi/2, 4]
Out[3]= {1, 1, 1, 3}

Pari says:
(16:26) gp > contfrac(Pi/2,,2)
%14 = [1, 1]
(16:26) gp > contfrac(Pi/2,,3)
%15 = [1, 2]
(16:26) gp > contfrac(Pi/2,,4)
%16 = [1, 1, 1, 3]

Both x86 2.2.6 and Alpha 2.2.7 (development CHANGES-1.855) (i.e. 
last night's nightly build) suffer from the above.
(my x86 2.1.3 is even more bizarre, for reference).

Phil

=====
When inserting a CD, hold down shift to stop the AutoRun feature
In the Device Manager, disable the SbcpHid device.
http://www.cs.princeton.edu/~jhalderm/cd3/

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree