What are the PARI/GP alternatives to contfrac() ?

Alexander Povolotsky apovolot at gmail.com
Fri Dec 28 17:01:05 CET 2007


Hi,

http://en.wikipedia.org/wiki/Continued_fraction

shows two variants of "regular" continuous (continued)  fraction expansion
for Pi where numerators in fractions are squares (either all consecutive
squares in one variant or consecutive odd squares in another variant).

However executing contfrac(Pi) only shows "irregular" continuous
(continued)  fraction expansion for Pi.

Is there a (desirably simple) PARI/GP way to generate desired (as mentioned
above) "regular" continuous (continued)  fraction expansion for Pi ?

Thanks,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.seqfan.eu/pipermail/seqfan/attachments/20071228/a36da6a6/attachment.htm>


More information about the SeqFan mailing list