Mathc initiation/Fichiers h : x 66a7
Installer ce fichier dans votre répertoire de travail.
![]() |
x_fxy_x.h |
---|
/* ---------------------------------- */
/* save as x_fxy_x.h */
/* ---------------------------------- */
double fxy_x(
double (*P_f)(double x, double y),
pt2d p,
double h
)
{
double tplsh;
double tmnsh;
tplsh = ((*P_f)(p.x+h,p.y));
tmnsh = ((*P_f)(p.x-h,p.y));
return(( tplsh-tmnsh)/(2.*h) );
}
/* ---------------------------------- */
double fxy_y(
double (*P_f)(double x, double y),
pt2d p,
double h
)
{
double tplsh;
double tmnsh;
tplsh = ((*P_f)(p.x,p.y+h));
tmnsh = ((*P_f)(p.x,p.y-h));
return(( tplsh-tmnsh)/(2.*h) );
}
/* ---------------------------------- */
/* ---------------------------------- */
Déclaration des fichiers h.