In addition to the standard error codes for invalid arguments the functions can return the following values,
the maximum number of subdivisions was exceeded.
cannot reach tolerance because of roundoff error, or roundoff error was detected in the extrapolation table.
a non-integrable singularity or other bad integrand behavior was found in the integration interval.
the integral is divergent, or too slowly convergent to be integrated numerically.