I need to evaluate a definite integral of a function which is zero almost everywhere, for instance something like a Gaussian with an artificial cutoff, such that any function value below some threshold is returned as 0.
I don't know beforehand where the function is above this threshold, I only have a very rough estimate.
Now if I take a look on e.g. the adaptive Simpson's method then it will estimate the whole integral as 0 if the first few recursive calls happen to be outside the region, where the function returns a non-zero value.
I guess I'll face the same problems with most adaptive integration methods... So how is this problem usually solved.
Can you give me some keywords please?