FLINT3.7.0-dev

fmpz_mpoly_randtest_bound, fmpz_mpoly_randtest_bounds, fmpz_mpoly_randtest_bits

Synopsis#include <flint/fmpz_mpoly.h>
void fmpz_mpoly_randtest_bound(fmpz_mpoly_t A, flint_rand_t state, slong length, flint_bitcnt_t coeff_bits, ulong exp_bound, const fmpz_mpoly_ctx_t ctx)source
void fmpz_mpoly_randtest_bounds(fmpz_mpoly_t A, flint_rand_t state, slong length, flint_bitcnt_t coeff_bits, ulong * exp_bounds, const fmpz_mpoly_ctx_t ctx)source
void fmpz_mpoly_randtest_bits(fmpz_mpoly_t A, flint_rand_t state, slong length, flint_bitcnt_t coeff_bits, flint_bitcnt_t exp_bits, const fmpz_mpoly_ctx_t ctx)source

Set A to a random polynomial with at most length terms (fewer after like terms are combined), coefficients of about coeff_bits bits (as from fmpz_randtest), and exponents in [0, \mathit{exp\_bound}), in [0, \mathit{exp\_bounds}[i]) for the variable of index i, or such that the monomials can be packed into exp_bits bits. Intended for testing.

Cite this page

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