Skip to content

Commit 936661d

Browse files
committed
suggested details
1 parent c7745fe commit 936661d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sage/rings/rational_field.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,12 +1659,12 @@ def _factor_univariate_polynomial(self, f):
16591659
(10) * (x^5 - 1/10)
16601660
sage: QQ._factor_univariate_polynomial(10*x^5 - 10)
16611661
(10) * (x - 1) * (x^4 + x^3 + x^2 + x + 1)
1662-
16631662
"""
1664-
G = list(f._pari_with_name().factor())
1663+
G = f._pari_with_name().factor()
16651664

16661665
# normalize the leading coefficients
1667-
F = [(f.parent()(g).monic(), int(e)) for (g, e) in zip(*G)]
1666+
P = f.parent()
1667+
F = [(P(g).monic(), int(e)) for g, e in zip(*G)]
16681668

16691669
from sage.structure.factorization import Factorization
16701670
return Factorization(F, f.leading_coefficient())

0 commit comments

Comments
 (0)