On Tue, Sep 14, 2010 at 6:44 PM, Robert Bradshaw
<[email protected]> wrote:
> 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.

I should add that I think some of the confusion comes in the way
symbolics and numerical approximations interact.

sage: sqrt(2).n() * sqrt(2)
1.41421356237310*sqrt(2)

This is, in general, a hard problem, as one needs to guess what the
user actually wants...

- 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

Reply via email to