#19364: Add edges() and endpoints() method to intervals
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.10
      Component:  basic arithmetic   |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/add_edges___method_to_rif_and_cif_elements|  
388d495a093e551084e137f947e51ad74f6e0100
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 Replying to [comment:7 chapoton]:
 > Strange order:
 > {{{
 > (lower left, upper right, upper left, lower right)
 > }}}
 > what is the reason of this choice ?

 The rationale is the following: suppose you need 2 endpoints defining the
 interval (i.e. such that the union is the whole interval). In that case,
 those endpoints are `interval.endpoints()[:2]` both in the real and
 complex case.

 For the `edges()` method, I put pairs of opposing edges next to each
 other, because an application might want to process such pairs of opposing
 edges. The fact that the `endpoints()` method also returns pairs of
 opposing endpoints is consistent with that.

--
Ticket URL: <http://trac.sagemath.org/ticket/19364#comment:8>
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.

Reply via email to