FLINT3.7.0-dev

_gr_ctx_qqbar_set_limits

Synopsis#include <flint/gr.h>
void _gr_ctx_qqbar_set_limits(gr_ctx_t ctx, slong deg_limit, slong bits_limit)source

Limits the degrees of intermediate algebraic numbers of a qqbar context to deg_limit and their bit sizes to about bits_limit; a negative value removes the limit (the default). An operation that would exceed a limit returns GR_UNABLE. The limits refer to the sizes of resultants before factorisation (see qqbar_binop_within_limits), so adding two numbers of degree 100 needs a degree limit of at least 10000. Not all methods respect the limits.

Guides#

Cite this page

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