Loading [MathJax]/extensions/tex2jax.js
ug4
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ug::NewtonCotes Class Reference

#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 numberweights () 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 numberm_pvWeight
 Weights.
 

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: