Bill Allombert on Fri, 24 Jun 2005 19:37:12 +0200


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

Re: continued fractions


On Fri, Jun 17, 2005 at 12:38:04AM -0400, Nick Yates wrote:
> Hi!
> 
> I'm interested in using PARI-GP to work with continued fractions, especially non-simpe ones.  Can anyone give any advice?
> 

What do you want to do ?
See the GP function contfrac and  contfracpnqn.

? contfrac(Pi)
%1 = [3, 7, 15, 1, 292, 1, 1, 1, 2, 1, 3, 1, 14, 2, 1, 1, 2, 2, 2, 2, 1, 84, 2,
1, 1, 15]
? contfracpnqn(%)
%2 =
[139755218526789 8958937768937]

[44485467702853 2851718461558]

Cheers,
Bill