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)/(πi)y = \log(x) / (\pi i) is algebraic, which happens exactly when xx is a root of unity and then yy is rational, sets p/qp/q to yy in lowest terms with −1<y≤1-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-11-02).