FLINT3.7.0-dev

arb_get_unique_fmpz

Synopsis#include <flint/arb.h>
int arb_get_unique_fmpz(fmpz_t z, const arb_t x)source

If x contains exactly one integer, sets z to it and returns nonzero; otherwise returns zero.

This is the standard way to recover an integer that is known to be the exact value of an expression once the ball is narrow enough. A unique integer of huge size is computed exactly, which can exhaust memory; check the magnitude of the midpoint first when it is not known to be reasonable.

Guides#

Cite this page

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