QGaussLog< dim > Class Template Reference
[Quadrature formulas]

Inheritance diagram for QGaussLog< dim >:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 QGaussLog (const unsigned int n, const bool revert=false)
template<>
std::vector< doubleset_quadrature_points (const unsigned int) const
template<>
std::vector< doubleset_quadrature_weights (const unsigned int) const
template<>
 QGaussLog (const unsigned int n, const bool revert)

Protected Member Functions

std::vector< doubleset_quadrature_points (const unsigned int n) const
std::vector< doubleset_quadrature_weights (const unsigned int n) const


Detailed Description

template<int dim>
class QGaussLog< dim >

Gauss Quadrature Formula with logarithmic weighting function. This formula is used to to integrate ln|x|*f(x) on the interval [0,1], where f is a smooth function without singularities. The collection of quadrature points and weights has been obtained using Numerical Recipes.

Notice that only the function f(x) should be provided, i.e., $\int_0^1 f(x) ln|x| dx = \sum_{i=0}^N w_i f(q_i)$. Setting the revert flag to true at construction time switches the weight from ln|x| to ln|1-x|.

The weights and functions have been tabulated up to order 12.


Constructor & Destructor Documentation

template<int dim>
QGaussLog< dim >::QGaussLog ( const unsigned int  n,
const bool  revert = false 
)

Generate a formula with n quadrature points

template<>
QGaussLog< 1 >::QGaussLog ( const unsigned int  n,
const bool  revert 
) [inline]


Member Function Documentation

template<int dim>
std::vector<double> QGaussLog< dim >::set_quadrature_points ( const unsigned int  n  )  const [protected]

Sets the points of the quadrature formula.

template<int dim>
std::vector<double> QGaussLog< dim >::set_quadrature_weights ( const unsigned int  n  )  const [protected]

Sets the weights of the quadrature formula.

template<>
std::vector< double > QGaussLog< 1 >::set_quadrature_points ( const unsigned  int  )  const [inline]

template<>
std::vector< double > QGaussLog< 1 >::set_quadrature_weights ( const unsigned  int  )  const [inline]


The documentation for this class was generated from the following file:

deal.II documentation generated on Sat Aug 15 16:52:15 2009 by doxygen 1.5.9