Specifically, the integration returned an NaN if the integration was *up to* an NaN (real inegrals are robust); and the results were negative if integrating from a to b where a > b.
One for the library (same as before), the other for the executable part.