On Tue, Sep 14, 2010 at 10:44 AM, Håkan Granath <[email protected]> wrote: > On Sep 14, 12:16 am, Robert Bradshaw <[email protected]> > wrote: >> >> Alastair correctly deduced the issue that it can't tell if the number >> is less than or greater than 2, what should it do here? > > I do not know what it should do, but what I would have expected > in this case is that continued_fraction would first compute the > 53 bit approximation of the input, and then return the continued > fraction of that approximation.
If this is what you want, the way to get that is to give it something that has 53 bits of precision. > Not returning anything is quite unexpected. Nothing != the empty list. In any case, I think it's better to only give correct digits than have an arbitrary number of tail terms be spurious random stuff that may or may not stabilize as the precision goes up. - Robert -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
