FLINT3.7.0-dev

gr_test_factor

Synopsis#include <flint/gr.h>
int gr_test_factor(gr_ctx_t R, flint_rand_t state, int test_flags)source

Tests gr_factor on a small random element, sometimes a product of two: the lengths of factors and exponents agree and c \prod f_k^{e_k} equals the input. GR_DOMAIN is accepted only for the input zero.

Cite this page

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