From ee10a84c43f3c147c3a0652a084e0204be1c7454 Mon Sep 17 00:00:00 2001 From: fredrik Date: Mon, 12 Feb 2018 15:12:30 +0100 Subject: [PATCH] bump default quadrature deg_limit at low precision => speedup for entire functions --- acb_calc/integrate.c | 2 +- doc/source/acb_calc.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/acb_calc/integrate.c b/acb_calc/integrate.c index e3f60bed..3dc27f7b 100644 --- a/acb_calc/integrate.c +++ b/acb_calc/integrate.c @@ -150,7 +150,7 @@ acb_calc_integrate(acb_t res, acb_calc_func_t f, void * param, goal = FLINT_MAX(goal, 0); deg_limit = options->deg_limit; 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; use_heap = options->use_heap; diff --git a/doc/source/acb_calc.rst b/doc/source/acb_calc.rst index 3c81583f..d28e8be9 100644 --- a/doc/source/acb_calc.rst +++ b/doc/source/acb_calc.rst @@ -204,7 +204,7 @@ Options for integration Maximum quadrature degree for each subinterval. 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. A higher quadrature degree can be beneficial for functions that are holomorphic on a large domain around the integration path