# Looking for an accurate algorithm to find the area of a oscillatory function

As the title suggests, I'm looking for a very accurate algorithm to find the area under an oscillatory function.

For instance, I would like to integrate the following graph

I'm currently using simpson's method to integrate this, but I was wondering if there are more accurate methods.

• Your test function looks smooth (infinitely often differentiable), to me. Did you mean to write oscillatory instead? – Carl Christian Jun 4 '16 at 19:11
• In what form is the function given? Do you have an analytic or partially analytic form, or is black box or defined by interpolation? – Geoffrey Irving Jun 6 '16 at 4:15