#12925: Thematic tutorial on combinatorics
--------------------------------------------------+-------------------------
Reporter: nthiery | Owner:
sage-combinat
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-5.1
Component: combinatorics | Resolution:
Keywords: thematic tutorial | Work issues:
Report Upstream: N/A | Reviewers: Hugh
Thomas, Nicolas M. Thiéry, Timothy Walsh
Authors: Nicolas M. Thiéry, Hugh Thomas | Merged in:
Dependencies: | Stopgaps:
--------------------------------------------------+-------------------------
Changes (by jdemeyer):
* status: positive_review => needs_work
Comment:
There are a few doctest failures:
{{{
**********************************************************************
File "/padic/scratch/jdemeyer/merger/sage-5.1.beta1/devel/sage-
main/sage/combinat/tutorial.py", line 664:
sage: S.cardinality() # long time
Expected:
2003529930406846464979072351560255750447825475569751419265016973
...736L
Got:
20035299304068464649790[didn't copy]905719156736
**********************************************************************
File "/padic/scratch/jdemeyer/merger/sage-5.1.beta1/devel/sage-
main/sage/combinat/tutorial.py", line 675:
sage: S.unrank(237102123) # long time
Expected:
{{{2}, {3}, {1, 2, 3, 4}, {1, 2}, {1, 4}, {}, {2, 3, 4},
{1, 2, 4}, {3, 4}, {4}, {2, 3}, {1, 2, 3}}, {{2}, {3},
{1, 2, 3, 4}, {1, 2}, {1, 4}, {2, 3, 4}, {3, 4},
{1, 3, 4}, {1}, {1, 3}, {1, 2, 3}}}
Got:
{{{3}, {1, 2, 3, 4}, {1, 2}, {1, 4}, {}, {2, 3, 4}, {1, 2, 4}, {3, 4},
{4}, {2, 3}, {1, 2, 3}, {2}}, {{3}, {1, 2, 3, 4}, {1, 2}, {1, 4
}, {2, 3, 4}, {3, 4}, {1, 3, 4}, {1}, {1, 3}, {1, 2, 3}, {2}}}
**********************************************************************
File "/padic/scratch/jdemeyer/merger/sage-5.1.beta1/devel/sage-
main/sage/combinat/tutorial.py", line 1169:
sage: sum( x^len(s) for s in Subsets(8) )
Expected:
x^8 + 8*x^7 + 28*x^6 + 56*x^5 + 70*x^4 + 56*x^3 + 28*x^2 + 8*x + 1
Got:
976273994417299685848067930754598608313151518561000000000000000000000000
**********************************************************************
File "/padic/scratch/jdemeyer/merger/sage-5.1.beta1/devel/sage-
main/sage/combinat/tutorial.py", line 1174:
sage: sum( x^p.length() for p in Permutations(3) )
Expected:
x^3 + 2*x^2 + 2*x + 1
Got:
991035918113904045988003000
**********************************************************************
File "/padic/scratch/jdemeyer/merger/sage-5.1.beta1/devel/sage-
main/sage/combinat/tutorial.py", line 1179:
sage: factor(sum( x^p.length() for p in Permutations(3) ))
Expected:
(x + 1)*(x^2 + x + 1)
Got:
2^3 * 5^3 * 7^2 * 20347 * 80929 * 12282556080169
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12925#comment:14>
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.