I needed to derive some continued fractions and a quick search of the index suggests that the Pari-GP function 'contfrac' might be what I needed. A simple test in the notebook:
gp('contfrac(sqrt(6))') produced [2, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2] which is not exactly what I expected. I'd expect either: [2;2,4] or [2,2,4,2,4,2,4,2,4,....] the latter implying that the expansion continues. Does the result given mean that Pari is using a limited precision evaluation of sqrt(6)? I'd prefer the first of my expected results, giving a simple infinite continued fraction. Bill --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---