bump default quadrature deg_limit at low precision => speedup for entire functions

This commit is contained in:
fredrik 2018-02-12 15:12:30 +01:00
parent d64055fb3f
commit ee10a84c43
2 changed files with 2 additions and 2 deletions

View file

@ -150,7 +150,7 @@ acb_calc_integrate(acb_t res, acb_calc_func_t f, void * param,
goal = FLINT_MAX(goal, 0); goal = FLINT_MAX(goal, 0);
deg_limit = options->deg_limit; deg_limit = options->deg_limit;
if (deg_limit <= 0) if (deg_limit <= 0)
deg_limit = 0.5 * FLINT_MIN(goal, prec) + 10; deg_limit = 0.5 * FLINT_MIN(goal, prec) + 60;
verbose = options->verbose; verbose = options->verbose;
use_heap = options->use_heap; use_heap = options->use_heap;

View file

@ -204,7 +204,7 @@ Options for integration
Maximum quadrature degree for each subinterval. Maximum quadrature degree for each subinterval.
If a zero or negative value is provided, the limit is set to a default If a zero or negative value is provided, the limit is set to a default
value which currently equals `0.5 \cdot \min(prec, rel\_goal) + 10` for value which currently equals `0.5 \cdot \min(prec, rel\_goal) + 60` for
Gauss-Legendre quadrature. Gauss-Legendre quadrature.
A higher quadrature degree can be beneficial for functions that A higher quadrature degree can be beneficial for functions that
are holomorphic on a large domain around the integration path are holomorphic on a large domain around the integration path