Skip to content

Commit b2543b4

Browse files
committed
Fix docstring types and initalise int type
1 parent 52dee64 commit b2543b4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/flint/types/fmpz_mod_poly.pyx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -834,8 +834,8 @@ cdef class fmpz_mod_poly(flint_poly):
834834

835835
def is_one(self):
836836
"""
837-
Return ``True`` if the polynomial is the zero polynomial
838-
and `Fal`se` otherwise
837+
Return ``True`` if the polynomial is equal to one
838+
and ``False`` otherwise
839839
840840
>>> R = fmpz_mod_poly_ctx(163)
841841
>>> f = R(1)
@@ -846,8 +846,8 @@ cdef class fmpz_mod_poly(flint_poly):
846846

847847
def is_gen(self):
848848
"""
849-
Return ``True`` if the polynomial is the zero polynomial
850-
and ``False`` otherwise
849+
Return ``True`` if the polynomial is the generator
850+
of the polynomial, `x`, and ``False`` otherwise
851851
852852
>>> R = fmpz_mod_poly_ctx(163)
853853
>>> f = R([0,1])
@@ -1610,6 +1610,7 @@ cdef class fmpz_mod_poly(flint_poly):
16101610
cdef fmpz_mod_poly_factor_t fac
16111611
cdef int i, with_multiplicity
16121612

1613+
with_multiplicity = 0
16131614
if multiplicities:
16141615
with_multiplicity = 1
16151616

0 commit comments

Comments
 (0)