Skip to content

Commit

Permalink
Trac #33257: fix a bug in multiple zeta values
Browse files Browse the repository at this point in the history
about the simplify_full of the unit, that was zero..

URL: https://trac.sagemath.org/33257
Reported by: chapoton
Ticket author(s): Frédéric Chapoton
Reviewer(s): Travis Scrimshaw
  • Loading branch information
Release Manager committed Feb 13, 2022
2 parents 8326dee + 7ea8aea commit 20684fe
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 20684fe

Please sign in to comment.