ca_pow_fmpq, ca_pow_fmpz, ca_pow_ui, ca_pow_si, ca_pow
#include <flint/ca.h>Sets res to , with the principal branch for non-integer .
Integer powers of rational numbers and of number field elements are computed exactly unless the size of the result would exceed about CA_OPT_PREC_LIMIT bits; in generic fields, is expanded by repeated multiplication for CA_OPT_POW_LIMIT. Exponents are computed via ca_sqrt, and is simplified to when this is valid. Otherwise the result is the generator of a new field , which requires that is proved nonzero unless is a positive rational number; if that fails, the result is Unknown.
For special bases and integer exponents : is , 0 or Undefined for , and ; for , 0 for and Undefined for ; for . Non-integer powers involving special values give Unknown.
The FLINT team, “ca_pow_fmpq, ca_pow_fmpz, ca_pow_ui, ca_pow_si, ca_pow (ca.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ca/ca_pow_fmpq.html (generated 2026-11-02).
@misc{flint-doc-ca-ca-pow-fmpq,
author = {{The FLINT team}},
title = {{ca\_pow\_fmpq, ca\_pow\_fmpz, ca\_pow\_ui, ca\_pow\_si, ca\_pow (ca.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/ca/ca_pow_fmpq.html},
note = {Generated 2026-11-02}
}