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 0a1c264 commit ce633dcCopy full SHA for ce633dc
src/flint/flint_base/flint_base.pyx
@@ -71,7 +71,8 @@ cdef class flint_poly(flint_elem):
71
integer root and *m* is the multiplicity of the root.
72
73
To compute complex roots of a polynomial, instead use
74
- the `.complex_roots()` method.
+ the `.complex_roots()` method, which is available on
75
+ certain polynomial rings.
76
77
>>> from flint import fmpz_poly
78
>>> fmpz_poly([1, 2]).roots()
@@ -94,6 +95,9 @@ cdef class flint_poly(flint_elem):
94
95
v = - fac[0]
96
roots.append((v, m))
97
return roots
98
+
99
+ def complex_roots(self):
100
+ raise AttributeError("Complex roots are not supported for this polynomial")
101
102
103
cdef class flint_mpoly(flint_elem):
0 commit comments