#12278: misleading (outdated) docstring in partitions_restricted
----------------------------------------+-----------------------------------
Reporter: AlexGhitza | Owner: sage-combinat
Type: defect | Status: new
Priority: minor | Milestone: sage-5.3
Component: combinatorics | Resolution:
Keywords: partitions docstring | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
----------------------------------------+-----------------------------------
Comment (by nthiery):
For the record, here is an example from John Palmieri showing that wrong
answers can be output
silently when mixing parts_in and other arguments:
{{{
sage: [len(p) for p in Partitions(10, length=6, parts_in=[1,2])]
[5, 6, 7, 8, 9, 10]
sage: Partitions(10, parts_in=[1,2]).cardinality() == Partitions(10,
length=6, parts_in=[1,2]).cardinality()
True
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12278#comment:3>
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.