Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3501 by [email protected]: Missing partitions in
sympy.utilities.iterables.multiset_partitions
http://code.google.com/p/sympy/issues/detail?id=3501
multiset_partitions does not seem to be generating all possible partitions.
In particular, if I use this function to enumerate factorings of 672 it
does not find 2*2*8*21
Also, some of the partitions of [2,2,2,2,2,2] include the empty set as an
element.
I am aware of bug 2485 for multiset_partitions, but that seems to be
describing different behavior. (If this seems close enough, please go
ahead and merge this into 2485.)
Found this on 0.7.1, and it seems unchanged with a top-of-tree version I
just pulled with git. (Both tests on Linux, with 64 bit Python 2.7.3)
I am attaching a code snippet which shows the behavior.
Attachments:
sympy_multiset_bugs.py 791 bytes
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" 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/sympy-issues?hl=en.