Hi all,
I’m trying to implement a code able to perform numerical integration and to provide the principal value of an integral of a function. Unfortunately, the integration doesn’t work.
In particular, I have this error:
Error in <GSLError>: Error 21 in qawc.c at 209 : bad integrand behavior found in the integration interval
And the result doesn’t make any sense. Below, the piece of code which performs the integration:
It would be great to have an example, if possible!
By the way, yes, I think I’ve correctly defined the value of the pole and the function to integrate but, maybe, with an example I can better understand if my code contains bug which I’m not finding or not.
Yes,this is exactly what I need…to integrate a function within a range in which the pole is contained. So what you tell me is that there is no way to do this with the numerical integration implemented in root?