Opened 9 years ago

Closed 8 years ago

#13602 closed defect (duplicate)

partition distinct parts max part error

Reported by: ahmorales Owned by: Alejandro Morales
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: combinatorics Keywords: partitions
Cc: chrisjamesberg Merged in:
Authors: Reviewers: Alejandro Morales
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

In the documentation for Partitions:

http://www.sagemath.org/doc/reference/sage/combinat/partition.html

it says that the parameter max_slope=-1 yields partitions into distinct parts", and the parameter max_part=k specifies that all parts of the partitions are at most k. However when you specify both parameters together max_slope=-1, max_part=k it does not yield partitions into distinct parts and parts at most k.

Example:

Partitions(4,max_slope=-1,max_part=2).list()

returns

[[2,2]]

but according to the documentation the answer should be

[[]]

Change History (4)

comment:1 Changed 8 years ago by tscrim

  • Milestone changed from sage-5.5 to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

This is essentially #12278. I've copied this example over there.

comment:2 Changed 8 years ago by andrew.mathas

  • Status changed from needs_review to positive_review

I agree that this is a duplicate, so it should be removed.

comment:3 Changed 8 years ago by andrew.mathas

  • Type changed from PLEASE CHANGE to defect

comment:4 Changed 8 years ago by jdemeyer

  • Authors Alejandro Morales deleted
  • Resolution set to duplicate
  • Reviewers set to Alejandro Morales
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.