qqbar_root_ui, qqbar_fmpq_root_ui
Synopsis
#include <flint/qqbar.h>Sets res to the principal n-th root of x, for n \ge 1. The minimal polynomial is found among the factors of P(t^n), where P is the minimal polynomial of x; principal roots of positive rational numbers and roots of roots of unity are computed directly.
Guides#
Cite this page
The FLINT team, “qqbar_root_ui, qqbar_fmpq_root_ui (qqbar.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/qqbar/qqbar_root_ui.html (generated 2026-10-20).
@misc{flint-doc-qqbar-qqbar-root-ui,
author = {{The FLINT team}},
title = {{qqbar\_root\_ui, qqbar\_fmpq\_root\_ui (qqbar.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/qqbar/qqbar_root_ui.html},
note = {Generated 2026-10-20}
}