FLINT3.7.0-dev

fmpq_poly_get_nmod_poly, fmpq_poly_get_nmod_poly_den

Synopsis#include <flint/fmpq_poly.h>
void fmpq_poly_get_nmod_poly(nmod_poly_t rop, const fmpq_poly_t op)source
void fmpq_poly_get_nmod_poly_den(nmod_poly_t rop, const fmpq_poly_t op, int den)source

Set rop to the reduction of op modulo the modulus m of rop: the numerator coefficients are reduced modulo m and, by fmpq_poly_get_nmod_poly and by fmpq_poly_get_nmod_poly_den with den nonzero, multiplied by the inverse of the denominator modulo m, which must exist (not checked). With den = 0 only the numerator is reduced.

Cite this page

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