Class inte_qawo_gsl_cos (o2scl)

O2scl : Class List

template<class func_t>
class o2scl::inte_qawo_gsl_cos : public o2scl::inte_qawo_gsl_sin<func_t>

Adaptive integration a function with finite limits of integration (GSL)

The integral

\[ \int_a^b f(x) \cos (\omega x)~dx \]
is computed for some frequency parameter \( \omega \) .

This class is exactly analogous to o2scl::inte_qawo_gsl_sin . See that class documentation for more details.

Public Functions

inte_qawo_gsl_cos()
~inte_qawo_gsl_cos()
int integ_err(func_t &func, double a, double b, double &res, double &err)

Integrate function func from a to b and place the result in res and the error in err.

Protected Functions

double transform(double t, func_t &func)

Add the oscillating part to the integrand.

const char *type()

Return string denoting type (“inte_qawo_gsl_cos”)