On 2/19/2010 10:09:40 AM, rmix22 wrote:
>Interesting that as shown with
>very similar integrands it
>still sometimes worked and
>then not.
The numeric integration divides the integrand into sections using one of several methods. If a boundary falls on a singularity it will fail because it can't evaluate the integrand there. The default algorithm is "adaptive", and I do not know of any way to predict where the boundaries will be. If you change the integration method to "Romberg", your last example will fail. If you read the help about the Romberg method, you will see why: the first step is to divide the integrand into four subintervals, so the boundaries will be at -1/2, 0, and 1/2.
Richard