Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 5d82771

Browse files
author
Matthias Koeppe
committed
src/sage/categories/coxeter_groups.py: In doctest, avoid using symbolics
1 parent bbe19ad commit 5d82771

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sage/categories/coxeter_groups.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,10 @@ def length(self):
17101710
sage: w.length()
17111711
3
17121712
sage: W = CoxeterGroups().example()
1713-
sage: sum((x^w.length()) for w in W) - expand(prod(sum(x^i for i in range(j+1)) for j in range(4))) # This is scandalously slow!!! # optional - sage.symbolic
1713+
sage: R.<x> = ZZ[]
1714+
sage: s = sum(x^w.length() for w in W)
1715+
sage: p = prod(sum(x^i for i in range(j)) for j in range(1, 5))
1716+
sage: s - p
17141717
0
17151718
17161719
.. SEEALSO::

0 commit comments

Comments
 (0)