qqbar_pow_ui, qqbar_pow_si, qqbar_pow_fmpz, qqbar_pow_fmpq
Synopsis
#include <flint/qqbar.h>Sets res to x^n; for rational n = p/q the principal branch (x^{1/q})^p. x^0 = 1 for all x. Raising zero to a negative power throws an exception, and so does a rational exponent whose numerator or denominator does not fit in a word.
Guides#
Cite this page
The FLINT team, “qqbar_pow_ui, qqbar_pow_si, qqbar_pow_fmpz, qqbar_pow_fmpq (qqbar.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/qqbar/qqbar_pow_ui.html (generated 2026-10-20).
@misc{flint-doc-qqbar-qqbar-pow-ui,
author = {{The FLINT team}},
title = {{qqbar\_pow\_ui, qqbar\_pow\_si, qqbar\_pow\_fmpz, qqbar\_pow\_fmpq (qqbar.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/qqbar/qqbar_pow_ui.html},
note = {Generated 2026-10-20}
}