_nf_elem_add_qf, _nf_elem_sub_qf, nf_elem_add_qf, nf_elem_sub_qf
Synopsis
#include <flint/nf_elem.h>void _nf_elem_add_qf(nf_elem_t a, const nf_elem_t b, const nf_elem_t c, const nf_t nf, int can)sourcevoid _nf_elem_sub_qf(nf_elem_t a, const nf_elem_t b, const nf_elem_t c, const nf_t nf, int can)sourceAddition and subtraction in a field of degree 2, on all three numerator coefficients (so that unreduced elements can be added), canonicalising the result if can is nonzero (always for the versions without underscore). The underscore versions do not allow a to be aliased with c.
Cite this page
The FLINT team, “_nf_elem_add_qf, _nf_elem_sub_qf, nf_elem_add_qf, nf_elem_sub_qf (nf_elem.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nf_elem/_nf_elem_add_qf.html (generated 2026-10-20).
@misc{flint-doc-nf-elem-nf-elem-add-qf,
author = {{The FLINT team}},
title = {{\_nf\_elem\_add\_qf, \_nf\_elem\_sub\_qf, nf\_elem\_add\_qf, nf\_elem\_sub\_qf (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_add_qf.html},
note = {Generated 2026-10-20}
}