Changes between Version 35 and Version 36 of Ticket #17548


Ignore:
Timestamp:
03/14/15 13:30:41 (5 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17548 – Description

    v35 v36  
    22
    33{{{
    4 sage: Partitions(5, min_slope=1).list()
    5 ValueError: [2, 4] is not a valid partition
     4sage: C = Partitions(10, min_part=2, max_slope=-1)
     5sage: [5,3,2] in C
     6True
     7sage: C.list()
     8[[10], [8, 2], [7, 3], [6, 4]]
    69}}}
    710
    811{{{
    9 sage: Partitions(6, outer=[4,2], inner=[3,3]).list()
    10 [[3, 3]]
     12sage: C = Compositions(4, min_slope=0, max_slope=0)
     13sage: [1,1,1,1] in C
     14True
     15sage: C.list()
     16[[4], [2, 2]]
    1117}}}
    1218
    1319{{{
    14 sage: Compositions(4, length=3, min_slope=1).list()
    15 [[1, 2, 4]]
     20sage: C = Compositions(6, min_length=3, max_length=2)
     21sage: [4,1,1] in C
     22False
     23sage: C.list()[0]
     24[4, 1, 1]
    1625}}}
    1726
    1827{{{
    19 sage: Compositions(6, max_part=3, max_slope=-1).list()
    20 [[3, 3], [3, 2, 1]]
     28sage: C = Compositions(4, max_part=2, min_slope=1)
     29sage: [1,3] in C
     30False
     31sage: C.list()
     32[[1, 3]]
    2133}}}
    22 
    23 {{{
    24 sage: Partitions(6, max_part=3, max_slope=-4).list()
    25 [[5, 1]]
    26 }}}