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

Commit

Permalink
Fix bug with inverse.
Browse files Browse the repository at this point in the history
  • Loading branch information
tscrim committed Jul 26, 2021
1 parent b136d70 commit 5cd5b4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/data_structures/coefficient_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,9 @@ def iterate_coefficients(self):
c = self._zero
m = min(len(self._cache), n)
for k in range(m):
c += self._cache[k] * self._series[n - k]
for k in range(m, n):
c += self[v+k] * self._series[n - k]
c += self._cache[k] * self._series[n - v - k]
for k in range(v+m, v+n):
c += self[k] * self._series[n - k]
yield -c * self._ainv


Expand Down

0 comments on commit 5cd5b4d

Please sign in to comment.