FLINT3.7.0-dev

acb_calc_integrate_opt_struct, acb_calc_integrate_opt_t

Synopsis#include <flint/acb_calc.h>
acb_calc_integrate_opt_struct
acb_calc_integrate_opt_t

Options for acb_calc_integrate. acb_calc_integrate_opt_t is an array of one acb_calc_integrate_opt_struct. The fields are:

  • slong deg_limit: the largest Gauss–Legendre degree on a segment; default (if 0 or negative) 0.5 \min(\mathit{prec}, \mathit{rel\_goal}) + 60;
  • slong eval_limit: the approximate maximal number of evaluations of f; default 1000\,\mathit{prec} + \mathit{prec}^2;
  • slong depth_limit: the maximal number of segments waiting to be processed (memory use is proportional to it); default 2\,\mathit{prec};
  • int use_heap: if 1, process the segment with the largest error first (a priority queue) instead of the most recently created one (a stack);
  • int verbose: 1 prints a summary, 2 also information on each segment.

A higher deg_limit can help for functions that are holomorphic in a large neighbourhood of the path but oscillate, such as entire functions with many zeros; the precomputation of the nodes grows with the degree. A lower eval_limit makes the function give up sooner when it converges slowly; integrands with many discontinuities or singularities close to the path may need a higher one. The heap order sometimes gives better results when convergence fails, but may need many more queued segments (a larger depth_limit).

Cite this page

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