We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98766c4 commit 096daa7Copy full SHA for 096daa7
src/sage/rings/polynomial/polynomial_element.pyx
@@ -2159,6 +2159,14 @@ cdef class Polynomial(CommutativePolynomial):
2159
sage: r = f.any_root()
2160
sage: r^2 + r
2161
a^2 + a
2162
+
2163
+ Check for :issue:`37034` ::
2164
2165
+ sage: R.<x> = Zmod(55)[]
2166
+ sage: (x^2 + 1).any_root()
2167
+ Traceback (most recent call last):
2168
+ ...
2169
+ ValueError: ...
2170
"""
2171
if self.base_ring().is_finite() and self.base_ring().is_field():
2172
if self.degree() < 0:
0 commit comments