FLINT3.7.0-dev

nf_elem_add_si, nf_elem_add_fmpz, nf_elem_add_fmpq, nf_elem_sub_si, nf_elem_sub_fmpz, nf_elem_sub_fmpq, nf_elem_si_sub, nf_elem_fmpz_sub, nf_elem_fmpq_sub

Synopsis#include <flint/nf_elem.h>
void nf_elem_add_si(nf_elem_t a, const nf_elem_t b, slong c, const nf_t nf)source
void nf_elem_add_fmpz(nf_elem_t a, const nf_elem_t b, const fmpz_t c, const nf_t nf)source
void nf_elem_add_fmpq(nf_elem_t a, const nf_elem_t b, const fmpq_t c, const nf_t nf)source
void nf_elem_sub_si(nf_elem_t a, const nf_elem_t b, slong c, const nf_t nf)source
void nf_elem_sub_fmpz(nf_elem_t a, const nf_elem_t b, const fmpz_t c, const nf_t nf)source
void nf_elem_sub_fmpq(nf_elem_t a, const nf_elem_t b, const fmpq_t c, const nf_t nf)source
void nf_elem_si_sub(nf_elem_t a, slong c, const nf_elem_t b, const nf_t nf)source
void nf_elem_fmpz_sub(nf_elem_t a, const fmpz_t c, const nf_elem_t b, const nf_t nf)source
void nf_elem_fmpq_sub(nf_elem_t a, const fmpq_t c, const nf_elem_t b, const nf_t nf)source

Set a to b + c, b - c, respectively c - b, for a rational number c.

Guides#

Cite this page

The FLINT team, “nf_elem_add_si, nf_elem_add_fmpz, nf_elem_add_fmpq, nf_elem_sub_si, nf_elem_sub_fmpz, nf_elem_sub_fmpq, nf_elem_si_sub, nf_elem_fmpz_sub, nf_elem_fmpq_sub (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_si.html (generated 2026-10-20).