-
-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PartitionTuples.cardinality has problems #11476
Comments
comment:1
This seems to be problem in the pari function call, or possibly a bug in pari. I have emailed the pari development group to ask them about it. This failure appears much earlier than the example above suggests:
If you run pari natively you get the error more quickly:
This is a little surprising as the number of 2-tuples of partitions adding to 17 is 8470, which isn't that big. |
comment:2
I had a reply from Karim Belabas (UMR 5251) on pari-dev and it is just a matter of increasing the precision:
I'll upload a patch shortly. |
Changed keywords from none to PartitionTuple, cardinality |
Dependencies: #13072 |
Author: Andrew Mathas |
This comment has been minimized.
This comment has been minimized.
Reviewer: Travis Scrimshaw |
comment:6
Looks good, just do an automatic trac link Thanks. PS - Its somewhat entertaining to me to compute these huge numbers:
|
comment:7
Thanks for catching this...it seems that the version in the queue did this properly but that I hadn't uploaded it here...fixed now. Cheers, ps. I didn't check any of these big numbers by hand:) |
comment:8
Thanks! I'll double-check everything once #13072 is fixed up, but basically this is a positive review. |
comment:9
I believe this needs to be rebased to remove the fuzz:
but good otherwise so I am setting it to a positive review. Travis |
Attachment: trac_11476--fixing-partition-tuples_cardinality-am.patch.gz Fixing fuzz in applying patch |
Merged: sage-5.5.beta2 |
It works for smaller values.
As noted below, this turned out to just be an issue of increasing the precision in the pari function call. The attached patch fixes the problem:
Attach attachment: trac_11476--fixing-partition-tuples_cardinality-am.patch
Depends on #13072
CC: @sagetrac-sage-combinat
Component: combinatorics
Keywords: PartitionTuple, cardinality
Author: Andrew Mathas
Reviewer: Travis Scrimshaw
Merged: sage-5.5.beta2
Issue created by migration from https://trac.sagemath.org/ticket/11476
The text was updated successfully, but these errors were encountered: