hp2FEM
0.1
|
Class to evaluate the quadrature points and weights using the Newton Cotes quadrature. This class does not store any data. More...
#include <NewtonCotesQuadrature1D.h>
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. |
Class to evaluate the quadrature points and weights using the Newton Cotes quadrature. This class does not store any data.
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.
[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.
[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.
[in] | IntegrandOrder | - order of integrand used to calculate the number of quadratute points. |