|
TP Intégration Numérique
|
Generation of the regular discretization of the interval [a,b] with N points. More...
#include "mesh1D.h"Go to the source code of this file.
Functions | |
| void | DisReg (double a, double b, int N, double *X, double *ph) |
| Intialize the previously allocated "array" X with the regular discretization of the interval [a,b] with N points. | |
| void | DisRegAlloc (double a, double b, int N, double **pX, double *ph) |
| Intialize the previously allocated "array" X with the regular discretization of the interval [a,b] with N points. | |
Generation of the regular discretization of the interval [a,b] with N points.
Definition in file mesh1D.c.
| void DisReg | ( | double | a, |
| double | b, | ||
| int | N, | ||
| double * | X, | ||
| double * | ph | ||
| ) |
Intialize the previously allocated "array" X with the regular discretization of the interval [a,b] with N points.
| [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] | X | pointer to the modified array such that X[i]=a+i*h |
| [out] | ph | return constant step value : h=(b-a)/(N-1) |