ug4
ug::NewtonCotes Class Reference

#include <newton_cotes.h>

+ Inheritance diagram for ug::NewtonCotes:

Public Member Functions

 NewtonCotes (size_t order)
 constructor More...
 
 ~NewtonCotes ()
 destructor More...
 
- Public Member Functions inherited from ug::QuadratureRule< 1 >
size_t order () const
 returns the order More...
 
const MathVector< dim > & point (size_t i) const
 returns i'th integration point More...
 
const MathVector< dim > * points () const
 returns all positions in an array of size() More...
 
 QuadratureRule ()
 constructor More...
 
size_t size () const
 number of integration points More...
 
number weight (size_t i) const
 return the i'th weight More...
 
const numberweights () const
 returns all weights in an array of size() More...
 
virtual ~QuadratureRule ()
 destructor More...
 

Additional Inherited Members

- Public Types inherited from ug::QuadratureRule< 1 >
typedef MathVector< dimposition_type
 Position Type in Reference Element Space. More...
 
typedef number weight_type
 Type of weights. More...
 
- Static Public Attributes inherited from ug::QuadratureRule< 1 >
static const int dim
 Dimension of Reference Element. More...
 
- Protected Attributes inherited from ug::QuadratureRule< 1 >
size_t m_numPoints
 number of points More...
 
int m_order
 Order of rule. More...
 
const MathVector< dim > * m_pvPoint
 Integration points. More...
 
const numberm_pvWeight
 Weights. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ NewtonCotes()

◆ ~NewtonCotes()

ug::NewtonCotes::~NewtonCotes ( )

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