FLINT3.7.0-dev

qqbar_log_pi_i

Synopsis#include <flint/qqbar.h>
int qqbar_log_pi_i(slong * p, ulong * q, const qqbar_t x)source

If y = \log(x) / (\pi i) is algebraic, which happens exactly when x is a root of unity and then y is rational, sets p/q to y in lowest terms with -1 < y \le 1 and returns 1; otherwise returns 0.

Cite this page

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