FLINT3.7.0-dev

_qqbar_fast_detect_simple_principal_surd

Synopsis#include <flint/qqbar.h>
int _qqbar_fast_detect_simple_principal_surd(const qqbar_t x)source

Returns 1 if x is cheaply recognised, from its minimal polynomial q t^d - p and its enclosure, as the principal root (p/q)^{1/d} of a positive rational number with d \ge 2, and 0 otherwise (0 does not prove the contrary). Used to speed up qqbar_root_ui.

Cite this page

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