Am 2014-12-01 um 19:37 schrieb Nils Bruin:
> Interval fields apparently hide this (intervals are "equal" if they have
> non-empty intersection?), but of course hash cannot respect this, because this

ComplexIntervalFieldElement.__richcmp__ says:

        As with the real interval fields this never returns false positives.
        Thus, `a == b` is ``True`` iff both `a` and `b` represent the same
        one-point interval. Likewise `a != b` is ``True`` iff `x != y` for all
        `x \in a, y \in b`.

Note the "one-point interval". Therefore,

sage: a = CIF(RIF(0, 1), RIF(0, 1))
sage: a is a
True
sage: a == a
False

So equality is not even reflexive.

Regards, CH


-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to