qqbar_express_in_field
Synopsis
#include <flint/qqbar.h>int qqbar_express_in_field(fmpq_poly_t res, const qqbar_t alpha, const qqbar_t x, slong max_bits, int flags, slong prec)sourceTries to express x in the number field : on success, returns 1 and sets res to a polynomial of degree less than with . The identity is verified exactly, so success is proved. Failure does not prove that .
A relation between and is searched with LLL at working precision prec; if , a large enough precision always finds it. A rational x is handled directly. The parameters max_bits and flags are currently ignored. A single search is done; call the function repeatedly with increasing prec if needed.
Cite this page
The FLINT team, “qqbar_express_in_field (qqbar.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/qqbar/qqbar_express_in_field.html (generated 2026-11-02).
@misc{flint-doc-qqbar-qqbar-express-in-field,
author = {{The FLINT team}},
title = {{qqbar\_express\_in\_field (qqbar.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/qqbar/qqbar_express_in_field.html},
note = {Generated 2026-11-02}
}