Skip to content

Commit 7a7c564

Browse files
committed
improving monomial_reduction after reviewer suggestion
1 parent dab0ab0 commit 7a7c564

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sage/rings/polynomial/laurent_polynomial.pyx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,8 +1588,7 @@ cdef class LaurentPolynomial_univariate(LaurentPolynomial):
15881588
sage: f.monomial_reduction()
15891589
(3*x^5 + x^3 + 1, x^-1)
15901590
"""
1591-
u, n = self.polynomial_construction()
1592-
return (u, self.parent().gen(0) ** n)
1591+
return (self.__u, self._parent.gen(0) ** self.__n)
15931592

15941593
def is_constant(self):
15951594
"""

0 commit comments

Comments
 (0)