Skip to content

Commit

Permalink
Fix docstring for fmpz_poly_is_squarefree
Browse files Browse the repository at this point in the history
Co-authored-by: Max Horn <[email protected]>
  • Loading branch information
albinahlback and fingolfin committed Oct 15, 2024
1 parent 4352a58 commit 7227b61
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions doc/source/fmpz_poly.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1485,14 +1485,13 @@ Square-free


.. function:: int _fmpz_poly_is_squarefree(const fmpz * poly, slong len)

Returns whether the polynomial ``(poly, len)`` is square-free.

.. function:: int fmpz_poly_is_squarefree(const fmpz_poly_t poly)
int fmpz_poly_is_squarefree(const fmpz_poly_t poly)

Returns whether the polynomial ``poly`` is square-free. A non-zero
polynomial is defined to be square-free if it has no non-unit square
factors. We also define the zero polynomial to be square-free.
polynomial is defined to be square-free if its factorisation contains no
non-constant square factors. We also define the zero polynomial to be
square-free. This differs somewhat from the usual definition, e.g. we
consider the polynomial `4 x` in `\mathbb{Z}[x]` as square-free.

Returns `1` if the length of ``poly`` is at most `2`. Returns whether
the discriminant is zero for quadratic polynomials. Otherwise, returns
Expand Down

0 comments on commit 7227b61

Please sign in to comment.