FLINT3.7.0-dev

_gr_poly_make_monic, gr_poly_make_monic

Synopsis#include <flint/gr_poly.h>
int _gr_poly_make_monic(gr_ptr res, gr_srcptr poly, slong len, gr_ctx_t ctx)source
int gr_poly_make_monic(gr_poly_t res, const gr_poly_t src, gr_ctx_t ctx)source

Sets res to f / \operatorname{lc}(f), multiplying by the inverse of the leading coefficient or, if it has none, dividing each coefficient by it (which can succeed over integral domains when the divisions are exact). Returns GR_DOMAIN if f = 0 or a division fails, and GR_UNABLE if the leading coefficient is not provably nonzero.

Cite this page

The FLINT team, “_gr_poly_make_monic, gr_poly_make_monic (gr_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_poly/_gr_poly_make_monic.html (generated 2026-10-20).