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

Commit cac2291

Browse files
committed
using IntegerRange in MZV itself
1 parent 6b80c50 commit cac2291

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/sage/modular/multiple_zeta.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@
191191
from sage.modules.free_module import VectorSpace
192192
from sage.rings.integer_ring import ZZ
193193
from sage.rings.rational_field import QQ
194-
from sage.rings.semirings.non_negative_integer_semiring import NN
194+
from sage.sets.integer_range import IntegerRange
195+
from sage.rings.infinity import Infinity
195196

196197
# multiplicative generators for weight <= 17
197198
# using the following convention
@@ -660,7 +661,8 @@ def __init__(self, R):
660661
cat = GradedAlgebrasWithBasis(R).Commutative()
661662
if R in Domains():
662663
cat = cat & Domains()
663-
CombinatorialFreeModule.__init__(self, R, Words(NN, infinite=False),
664+
NN1 = IntegerRange(1, Infinity)
665+
CombinatorialFreeModule.__init__(self, R, Words(NN1, infinite=False),
664666
prefix="Z",
665667
category=cat)
666668

0 commit comments

Comments
 (0)