FLINT3.7.0-dev

nf_elem_mod_fmpz_den, nf_elem_smod_fmpz_den

Synopsis#include <flint/nf_elem.h>
void nf_elem_mod_fmpz_den(nf_elem_t res, const nf_elem_t a, const fmpz_t mod, const nf_t nf, int den)source
void nf_elem_smod_fmpz_den(nf_elem_t res, const nf_elem_t a, const fmpz_t mod, const nf_t nf, int den)source

If den is zero, set res to the integral element with the coefficients of qa reduced modulo m. If den is nonzero, set res to z/q, where z is the numerator of a reduced modulo mq, so that a - \mathtt{res} is integral with coefficients divisible by m. The mod versions use the residues in [0, m) (or [0, mq)), the smod versions the symmetric residues.

Cite this page

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