FLINT3.7.0-dev

qqbar_is_zero, qqbar_is_one, qqbar_is_neg_one, qqbar_is_i, qqbar_is_neg_i

Synopsis#include <flint/qqbar.h>
int qqbar_is_zero(const qqbar_t x)source
int qqbar_is_one(const qqbar_t x)source
int qqbar_is_neg_one(const qqbar_t x)source
int qqbar_is_i(const qqbar_t x)source
int qqbar_is_neg_i(const qqbar_t x)source

Returns whether x is 0, 1, -1, i or -i. These inspect the minimal polynomial (and the sign of the imaginary part of the enclosure for \pm i) and are therefore very fast.

Cite this page

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