#17714: Fix a bug in sorting RealSets
-------------------------------------------------+-------------------------
Reporter: yzh | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: calculus | sage-6.5
Merged in: | Keywords:
Reviewers: | Authors:
Work issues: | Report Upstream: N/A
Commit: | Branch:
20cbe14a42db5b71f64d54d2f1030e8df68a5ebb | u/yzh/test_branch
Stopgaps: | Dependencies:
-------------------------------------------------+-------------------------
Find a bug:
{{{
sage: RealSet((0, 1),[1, 1],(1, 2))
(0, 1) + [1, 2)
}}}
should return
{{{
(0, 2)
}}}
This can be fixed by a modification in {{{RealInterval.__cmp__}}}: when
comparing two intervals with the same lower bound, put lower_closed before
lower_open. i.e. [a, b] < (a, c].
--
Ticket URL: <http://trac.sagemath.org/ticket/17714>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.