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

Commit 6f11059

Browse files
committed
using sum_of_monomials
1 parent 0a56256 commit 6f11059

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sage/modular/multiple_zeta_F_algebra.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ def product_on_basis(self, pw1, pw2):
361361
"""
362362
p1, w1 = pw1
363363
p2, w2 = pw2
364-
return sum(self.basis()[(p1 + p2, u)] for u in w1.shuffle(w2))
364+
return self.sum_of_monomials((p1 + p2, W_Odds(u, check=False))
365+
for u in w1.shuffle(w2))
365366

366367
def half_product_on_basis(self, pw1, pw2):
367368
r"""
@@ -389,7 +390,7 @@ def half_product_on_basis(self, pw1, pw2):
389390
p1, w1 = pw1
390391
p2, w2 = pw2
391392
if not w1:
392-
return self.monomial(self._indices((p1 + p2, w2)))
393+
return self.basis()[(p1 + p2, w2)]
393394
letter = W_Odds([w1[0]], check=False)
394395
return self.sum_of_monomials((p1 + p2, letter + W_Odds(u, check=False))
395396
for u in w1[1:].shuffle(w2))

0 commit comments

Comments
 (0)