Take into the account case when integral converge to zero. Not very robust but covers some cases.
Take into the account case when integral converge to zero.
Not very robust but covers some cases.

Shimuuar/numeric-tools