FLINT3.7.0-dev

_nf_elem_trace, nf_elem_trace

Synopsis#include <flint/nf_elem.h>
void _nf_elem_trace(fmpz_t rnum, fmpz_t rden, const nf_elem_t a, const nf_t nf)source
void nf_elem_trace(fmpq_t res, const nf_elem_t a, const nf_t nf)source

Set the result to the absolute trace \operatorname{Tr}_{K/\mathbf{Q}}(a), computed as \sum_i a_i S_i from the coefficients a_i of a and the power sums S_i of the roots of f stored in the nf_t.

Guides#

Cite this page

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