FLINT3.7.0-dev

_nf_elem_inv, nf_elem_inv

Synopsis#include <flint/nf_elem.h>
void _nf_elem_inv(nf_elem_t a, const nf_elem_t b, const nf_t nf)source
void nf_elem_inv(nf_elem_t a, const nf_elem_t b, const nf_t nf)source

Set a to b^{-1} for b \ne 0, by the extended Euclidean algorithm for b and f over \mathbf{Q}. _nf_elem_inv does not allow aliasing. The result is undefined for b = 0.

Guides#

Cite this page

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