On 2/8/07, Luis Finotti <[EMAIL PROTECTED]> wrote:
> Thanks!  I could not find that in the Reference Manual...
>
> On the other hand, it seems that Sage (or Python) does not handle
> equality of reals very well:

Hi,
this is most likey due to rounding errors. The equality holds for fractions:

{{{
sage: 1/2==1/2
 True
sage: 1/2==1/2+1-1
 True
}}}

But note that rearranging your equation, we can still get equality:
{{{
sage: sqrt (2) - sqrt(2) + 1 - 1 ==0
 True
}}}

Hope that helps.
didier

--~--~---------~--~----~------------~-------~--~----~
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://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to