TP Intégration Numérique
 All Files Functions
mesh1D.h File Reference

Generation of the regular discretization of the interval [a,b] with N points. More...

#include "utils.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.
 

Detailed Description

Generation of the regular discretization of the interval [a,b] with N points.

Author
F. Cuvelier
Version
0.1
Date
18th November 2013

Definition in file mesh1D.h.

Function Documentation

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.

Parameters
[in]alower bound of the interval [a,b]
[in]bupper bound of the interval [a,b]
[in]Nnumber of points of the regular dicretization
[out]Xpointer to the modified array such that X[i]=a+i*h
[out]phreturn constant step value : h=(b-a)/(N-1)

Definition at line 11 of file mesh1D.c.