FLINT3.7.0-dev

nmod_poly_read, nmod_poly_fread

Synopsis#include <flint/nmod_poly.h>
int nmod_poly_read(nmod_poly_t poly)source
int nmod_poly_fread(FILE * f, nmod_poly_t poly)source

Read a polynomial in the plain format from stdin or from f. Unlike nmod_poly_set_str, they reinitialise poly with the modulus that was read. Return 1 on success and 0 if the input is not in the plain format. The coefficients are not reduced.

Cite this page

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