#17548: Partitions() involving min_slope argument is buggy
----------------------------+----------------------------------------------
       Reporter:            |        Owner:  ferriszorro
  ferriszorro               |       Status:  needs_review
           Type:  defect    |    Milestone:  sage-duplicate/invalid/wontfix
       Priority:  minor     |   Resolution:
      Component:            |    Merged in:
  combinatorics             |    Reviewers:
       Keywords:            |  Work issues:
  Partitions                |       Commit:
        Authors:            |     Stopgaps:
Report Upstream:  N/A       |
         Branch:            |
   Dependencies:            |
----------------------------+----------------------------------------------
Changes (by tscrim):

 * status:  needs_work => needs_review
 * milestone:  sage-6.5 => sage-duplicate/invalid/wontfix


Comment:

 This is actually bad input: the slopes should be negative (to be useful
 for partitions). From the documentation of `Partitions`:
 {{{
 - ``min_slope=k`` specifies that the partitions have slope at least
   `k`; the slope is the difference between successive parts.
 }}}
 The second input is actually correct, that is the only partition of 5 with
 a positive slope (provided you don't count trailing 0's, which is how Sage
 currently behaves). With that being said, the internal assumptions of
 `IntegerListsLex` are also being broken with `min_slope > max_slope == 0`,
 so it's no surprise bad data is being returned. So this should be a
 wontfix.

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