#12278: misleading (outdated) docstring in partitions_restricted
----------------------------------------+-----------------------------------
       Reporter:  AlexGhitza            |         Owner:  sage-combinat
           Type:  defect                |        Status:  new          
       Priority:  minor                 |     Milestone:  sage-5.4     
      Component:  combinatorics         |    Resolution:               
       Keywords:  partitions docstring  |   Work issues:               
Report Upstream:  N/A                   |     Reviewers:               
        Authors:                        |     Merged in:               
   Dependencies:                        |      Stopgaps:               
----------------------------------------+-----------------------------------

Comment (by andrew.mathas):

 > Edit: You could use `ending=[2]` , which is currently broken. {{{ sage:
 Partitions(4, ending=[2] ).list() [[4] , [3, 1], [2, 2], [2, 1, 1], [1, 1,
 1, 1]] }}}

 I don't understand the manual entry for `ending` which says

 {{{
 If "ending=p" is passed, then the combinatorial class of partitions
 at most p in lexicographic order is returned.
 }}}
 but in any case the set that I want when `e=3` can currently be obtained
 using
 {{{
 sage: [mu for mu in Partitions(4, min_slope=-2) if mu[-1]<3]
 [[3, 1], [2, 2], [2, 1, 1], [1, 1, 1, 1]]
 }}}
 Checking that the last part is strictly less than `e` is enough in
 general.

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