FLINT3.7.0-dev

_fmpz_poly_has_real_root, fmpz_poly_has_real_root

Synopsis#include <flint/fmpz_poly.h>
int _fmpz_poly_has_real_root(const fmpz * p, slong len)source
int fmpz_poly_has_real_root(const fmpz_poly_t pol)source

Return whether the squarefree polynomial has a real root. Odd degree, a root at zero, a sign change between 0 and \infty, or an odd number of sign variations of f(x) or f(-x) answer immediately; otherwise the real roots are counted.

Cite this page

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