Some extreme parametrization will cause a failure of used numerical integration techniques. This cannot be avoided completely, but sometimes improvements might be possible. This particular case arose when new tests were added and the randomly generated test-parametrizations changed unfavorably.
It is unclear whether the roundoff error in the extrapolation table could be ignored if the error estimate is still below the requested tolerance. In any case, I think reporting the issue and letting the user decide is prudent.
For the primary application, calculating the Bernstein function itself using the integral representation is not required. Is it necessary that this is a test case and potentially causes more issues down the road?
Is it possible, in general, to scale the integral and improve stability for cases like this?
Description
Some extreme parametrization will cause a failure of used numerical integration techniques. This cannot be avoided completely, but sometimes improvements might be possible. This particular case arose when new tests were added and the randomly generated test-parametrizations changed unfavorably.
Reprex
Created on 2023-02-07 with reprex v2.0.2