1
$\begingroup$

How can we use adaptive quadrature to approximate the following integral to $10^{-5}$?

$$\int_0^{\pi/2}(6\cos4x+4\sin6x)e^x\,dx$$

Thanks

  • 0
    Do you want an algorithm, or want someone to point you to a software package that you can use to actually compute it? In the event of the latter, what's your favorite language? I can suggest solutions in C/C++, Matlab, and Python.2012-03-04
  • 0
    can you do this by hand, or use Matlab program? Thanks2012-03-04
  • 0
    Or the free alternative, GNU Octave: http://www.gnu.org/software/octave/2012-03-04
  • 1
    Have you read the [wikipedia page](http://en.wikipedia.org/wiki/Adaptive_quadrature)? Adaptive quadrature is very boring to do by hand. The [Adaptive Simpson's method](http://en.wikipedia.org/wiki/Adaptive_Simpson%27s_method) is easy to implement.2012-04-03

2 Answers 2