|
ug4
|
#include <newton_cotes.h>
Inheritance diagram for ug::NewtonCotes:Public Member Functions | |
| NewtonCotes (size_t order) | |
| constructor | |
| ~NewtonCotes () | |
| destructor | |
Public Member Functions inherited from ug::QuadratureRule< 1 > | |
| size_t | order () const |
| returns the order | |
| const MathVector< dim > & | point (size_t i) const |
| returns i'th integration point | |
| const MathVector< dim > * | points () const |
| returns all positions in an array of size() | |
| QuadratureRule () | |
| constructor | |
| size_t | size () const |
| number of integration points | |
| number | weight (size_t i) const |
| return the i'th weight | |
| const number * | weights () const |
| returns all weights in an array of size() | |
| virtual | ~QuadratureRule () |
| destructor | |
Additional Inherited Members | |
Public Types inherited from ug::QuadratureRule< 1 > | |
| typedef MathVector< dim > | position_type |
| Position Type in Reference Element Space. | |
| typedef number | weight_type |
| Type of weights. | |
Static Public Attributes inherited from ug::QuadratureRule< 1 > | |
| static const int | dim |
| Dimension of Reference Element. | |
Protected Attributes inherited from ug::QuadratureRule< 1 > | |
| size_t | m_numPoints |
| number of points | |
| int | m_order |
| Order of rule. | |
| const MathVector< dim > * | m_pvPoint |
| Integration points. | |
| const number * | m_pvWeight |
| Weights. | |
This class provides Newton-Cotes integrals for the 1d line [0,1]. See e.g. http://en.wikipedia.org/wiki/Newton�Cotes_formulas for details.
The implemented rules are auto-generate using mathematica. If higher orders are needed, rerun the corresponding file.
| ug::NewtonCotes::NewtonCotes | ( | size_t | order | ) |
| ug::NewtonCotes::~NewtonCotes | ( | ) |
destructor
References ug::QuadratureRule< 1 >::m_pvPoint, and ug::QuadratureRule< 1 >::m_pvWeight.