|
TP Intégration Numérique
|
Composite quadrature rules for numerical integration. More...
#include "mesh1D.h"Go to the source code of this file.
Functions | |
| double | quadPM (double(*f)(double), double *X, int N, double h) |
| Numerical integration using composite midpoints rules. | |
| double | quadPMAlloc (double(*f)(double), double a, double b, int N, double *ph) |
| Numerical integration using composite midpoints rules. | |
Composite quadrature rules for numerical integration.
Definition in file quad.c.
| double quadPM | ( | double(*)(double) | f, |
| double * | X, | ||
| int | N, | ||
| double | h | ||
| ) |
Numerical integration using composite midpoints rules.
| [in] | f | function to integrate |
| [in] | N | number of points of the regular dicretization |
| [in] | X | pointer to the regular discretization |
| [in] | h | step value of the discretization. |
| quadPMAlloc | ( | double(*)(double) | f, |
| double | a, | ||
| double | b, | ||
| int | N, | ||
| double * | ph | ||
| ) |
Numerical integration using composite midpoints rules.
| [in] | f | function to integrate |
| [in] | a | lower bound of the interval [a,b] |
| [in] | b | upper bound of the interval [a,b] |
| [in] | N | number of points of the regular dicretization |
| [out] | *ph | step value of the discretization. |