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

Commit

Permalink
Merge branch 'public/rings/laurent_quo_rem_bug-34330' into public/rin…
Browse files Browse the repository at this point in the history
…gs/lazy_talyor_series-32324
  • Loading branch information
tscrim committed Aug 11, 2022
2 parents 503ba26 + 8798139 commit 75e3f3b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/sage/rings/polynomial/laurent_polynomial.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1339,10 +1339,10 @@ cdef class LaurentPolynomial_univariate(LaurentPolynomial):
return ret

@coerce_binop
def quo_rem(self, right_r):
def quo_rem(self, other):
r"""
Attempts to divide ``self`` by ``right`` and returns a quotient
``q`` and a remainder ``r`` such that ``self = q*other + r``.
Divide ``self`` by ``other`` and return a quotient ``q``
and a remainder ``r`` such that ``self == q * other + r``.
EXAMPLES::
Expand Down Expand Up @@ -1375,7 +1375,7 @@ cdef class LaurentPolynomial_univariate(LaurentPolynomial):
sage: num == q * den + r
True
"""
cdef LaurentPolynomial_univariate right = <LaurentPolynomial_univariate> right_r
cdef LaurentPolynomial_univariate right = <LaurentPolynomial_univariate> other
q, r = self.__u.quo_rem(right.__u)
cdef LaurentPolynomial_univariate ql, qr
ql = <LaurentPolynomial_univariate> self._new_c()
Expand Down Expand Up @@ -3747,3 +3747,4 @@ cdef class LaurentPolynomial_mpair(LaurentPolynomial):
if new_ring is not None:
return new_ring(ans)
return ans

0 comments on commit 75e3f3b

Please sign in to comment.