![]() |
Object-oriented Scientific Computing Library: Version 0.910
|
Adaptive integration for oscillatory integrals (GSL) More...
#include <gsl_inte_qawf.h>
The Fourier integral
is computed for some frequency parameter , stored in gsl_inte_qawo_sin::omega .
The integral is computed using the same method as gsl_inte_qawo_sin and gsl_inte_qawo_cos over each of the subintervals,
where . This width is chosen to cover an odd number of periods so that the contributions from the intervals alternate in sign and are monotonically decreasing when
is positive and monotonically decreasing. The sum of this sequence of contributions is accelerated using the
algorithm.
The algorithm uses zero for the relative tolerance inte::tol_rel and attempts to compute the integral to an overall absolute tolerance set by inte::tol_abs. The following strategy is used: on each interval , the algorithm tries to achieve the tolerance
where and
. The sum of the geometric series of contributions from each interval gives an overall tolerance of
. If the integration of a subinterval leads to difficulties then the accu racy requirement for subsequent intervals is relaxed,
where is the estimated error on the interval
.
See GSL-based integration routines in the User's guide for general information about the GSL integration classes.
When verbose output is enabled, this class outputs information from both the subintegrations performed by gsl_inte_qawo_sin and the overall integration progress in this class.
Definition at line 88 of file gsl_inte_qawf.h.
Public Member Functions | |
virtual 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 Member Functions | |
int | qawf (func_t &func, const double a, const double epsabs, double *result, double *abserr) |
The full GSL integration routine called by integ_err() | |
virtual double | transform (double t, func_t &func) |
Add the oscillating part to the integrand. | |
const char * | type () |
Return string denoting type ("gsl_inte_qawf_sin") | |
Protected Attributes | |
gsl_inte_workspace * | cyclew |
The integration workspace. |
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).