Mathc initiation/Fichiers h : c60a4
Aller à la navigation
Aller à la recherche
Installer ce fichier dans votre répertoire de travail.
![]() |
x_f_x.h |
---|
/* ---------------------------------- */
/* save as x_f_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.