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

Commit

Permalink
fix a bug in multiple zeta values
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Jan 31, 2022
1 parent ec60e55 commit 7ea8aea
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/sage/modular/multiple_zeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,13 @@ def basis_f_iterator(n):
(2, word: f7),
(3, word: f5),
(4, word: f3)]
TESTS::
sage: list(basis_f_iterator(0))
[(0, word: )]
"""
if n < 2:
if n and n < 2:
return
for k in range(n // 2 + 1):
for start in basis_f_odd_iterator(n - 2 * k):
Expand Down Expand Up @@ -1229,6 +1234,11 @@ def simplify_full(self, basis=None):
sage: Multizeta(7).simplify_full()
352/151*ζ(2,2,3) + 672/151*ζ(2,3,2) + 528/151*ζ(3,2,2)
TESTS::
sage: Multizetas(QQ).one().simplify_full()
ζ()
"""
if basis is None:
basis = self.parent().basis_brown
Expand Down

0 comments on commit 7ea8aea

Please sign in to comment.