Mathc initiation/Fichiers h : c61a4
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),
double h,
p2d p
)
{
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),
double h,
p2d p
)
{
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.