hp2FEM  0.1
Public Member Functions
NewtonCotesQuadrature1D Class Reference

Class to evaluate the quadrature points and weights using the Newton Cotes quadrature. This class does not store any data. More...

#include <NewtonCotesQuadrature1D.h>

List of all members.

Public Member Functions

 NewtonCotesQuadrature1D ()
 Default constructor.
 ~NewtonCotesQuadrature1D ()
 Class destructor.
void GetCoordinatesWeights (unsigned long IntegrandOrder, double *const Coordinates, unsigned long &NumberCoords, double *const Weights)
 Calculates the coordinates and weights of the points.usinh the Newton-Cotesi quadrature.
void GetCoordinatesWeights (unsigned long NumberCoords, double *const Coordinates, double *const Weights)
 Calculates the coordinates and weights of the points.usinh the Newton-Cotesi quadrature.
unsigned long GetNumberCoordinates (unsigned long IntegrandOrder)
 Returns the number of coordinates.

Detailed Description

Class to evaluate the quadrature points and weights using the Newton Cotes quadrature. This class does not store any data.

Author:
Fabiano Fernandes Bargos/ Marco Lcio Bittencourt
Date:
March/17/2011

Member Function Documentation

void NewtonCotesQuadrature1D::GetCoordinatesWeights ( unsigned long  IntegrandOrder,
double *const  Coordinates,
unsigned long &  NumberCoords,
double *const  Weights 
)

Calculates the coordinates and weights of the points.usinh the Newton-Cotesi quadrature.

This procedure is only stable for degree less or equal to ten.

Parameters:
[in]IntegrandOrder- order of integrand used to calculate the number of quadratute points.
[out]NumCoordinates- number of quadrature points.
[out]Coordinates- coordinates of the quadrature points.
[out]Weights- weights of the quadrature points.
void NewtonCotesQuadrature1D::GetCoordinatesWeights ( unsigned long  NumberCoords,
double *const  Coordinates,
double *const  Weights 
)

Calculates the coordinates and weights of the points.usinh the Newton-Cotesi quadrature.

Parameters:
[in]NumCoordinates- number of quadrature points.
[out]Coordinates- coordinates of the quadrature points.
[out]Weights- weights of the quadrature points.
unsigned long NewtonCotesQuadrature1D::GetNumberCoordinates ( unsigned long  IntegrandOrder)

Returns the number of coordinates.

Parameters:
[in]IntegrandOrder- order of integrand used to calculate the number of quadratute points.
Returns:
an unsigned long type with number of coordinates.

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Friends Defines