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)sourcevoid nf_elem_smod_fmpz_den(nf_elem_t res, const nf_elem_t a, const fmpz_t mod, const nf_t nf, int den)sourceIf 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).
@misc{flint-doc-nf-elem-nf-elem-mod-fmpz-den,
author = {{The FLINT team}},
title = {{nf\_elem\_mod\_fmpz\_den, nf\_elem\_smod\_fmpz\_den (nf\_elem.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nf_elem/nf_elem_mod_fmpz_den.html},
note = {Generated 2026-10-20}
}