Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions | Protected Member Functions | Protected Attributes
gsl_inte_qagil< func_t > Class Template Reference

Integrate a function over the interval $ (-\infty, b] $ (GSL) More...

#include <gsl_inte_qagil.h>

Inheritance diagram for gsl_inte_qagil< func_t >:
gsl_inte_transform< func_t > gsl_inte_singular< func_t > gsl_inte_kronrod< func_t > gsl_inte inte< func_t >

Detailed Description

template<class func_t = funct>
class gsl_inte_qagil< func_t >

The integral on the unbounded interval is rewritten over the semi-open interval $ (0, 1] $ via a variable transformation,

\[ \int_{-\infty}^b f(x)~dx = \int_0^1 f(b - (1-t)/t)t^{-2}~dt, \]

and the right hand side is evaluated with gsl_inte_qags.

See GSL-based integration routines in the User's guide for general information about the GSL integration classes.

Definition at line 48 of file gsl_inte_qagil.h.

Public Member Functions

virtual int integ_err (func_t &func, double a, double b, double &res, double &err)
 Integrate function func from $ -\infty $ to b and place the result in res and the error in err.

Protected Member Functions

virtual double transform (double t, func_t &func)
 Transform to $ t \in (0,1] $.

Protected Attributes

double upper_limit
 The upper limit.

Member Function Documentation

template<class func_t = funct>
virtual int gsl_inte_qagil< func_t >::integ_err ( func_t &  func,
double  a,
double  b,
double &  res,
double &  err 
) [inline, virtual]

The value given in a is ignored.

Implements inte< func_t >.

Definition at line 67 of file gsl_inte_qagil.h.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.