Skip to content

Commit

Permalink
Update src/sage/rings/polynomial/integer_valued_polynomials.py
Browse files Browse the repository at this point in the history
Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>
  • Loading branch information
fchapoton and tscrim authored Feb 11, 2023
1 parent c850d4b commit 207a954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/rings/polynomial/integer_valued_polynomials.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ def product_on_basis(self, n1, n2):
if j < i:
j, i = i, j

return self.sum((-1)**k * i.binomial(k) * (i + j - k).binomial(i) *
self.basis()[i + j - k] for k in range(i + 1))
R = self.base_ring()
return self._from_dict({i+j-k: R((-1)**k * i.binomial(k) * (i + j - k).binomial(i)) for k in range(i + 1)})

def from_polynomial(self, p):
"""
Expand Down

0 comments on commit 207a954

Please sign in to comment.