| sp | |
| np | |
| clenshaw_curtis(f, n) | Return the integral of . |
This is a quadrature method for evaluating integrals over [-1,1]
using the change of variables
:

where the coefficients
are the cosine series

which can be computed using the Fast Fourier Transform (fft).