#8353: Adding height() and width() functions to square grid paths
-----------------------------+----------------------------------------------
   Reporter:  abmasse        |       Owner:  abmasse             
       Type:  enhancement    |      Status:  needs_work          
   Priority:  major          |   Milestone:  sage-4.3.4          
  Component:  combinatorics  |    Keywords:  paths, height, width
     Author:                 |    Upstream:  N/A                 
   Reviewer:                 |      Merged:                      
Work_issues:                 |  
-----------------------------+----------------------------------------------
Changes (by abmasse):

  * owner:  sage-combinat => abmasse


Comment:

 Thanks for your comments !

 I found an almost-clean solution for the problem raised by the triangular
 grid paths. Instead of computing directly the `height()` and `width()`
 functions, I introduced the `xmin()`, `xmax()`, `ymin()` and `ymax()`
 functions we talked about. They are called by the two first functions. To
 solve the problem for the triangular grid paths, I just redefined them by
 coercing the x- and y-coordinates to real values, so that the `max` and
 `min` functions be well-defined.

 I'll upload another patch in a few minutes. Needs review !

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8353#comment:7>
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 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-trac?hl=en.

Reply via email to