Skip to content

Commit

Permalink
heuristically, polynomials tend to be monic
Browse files Browse the repository at this point in the history
Co-authored-by: mathzeta <90798584+mathzeta@users.noreply.github.com>
  • Loading branch information
mantepse and mathzeta authored Nov 12, 2024
1 parent dc8a398 commit 8edd52d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/categories/unique_factorization_domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def content(X):
"""
Return the content of ``X`` up to a unit.
"""
X_it = iter(X.coefficients())
X_it = reversed(X.coefficients())
x = next(X_it)
if x.is_unit():
return None
Expand Down

0 comments on commit 8edd52d

Please sign in to comment.