Mathc initiation/Fichiers h : c50a3
Aller à la navigation
Aller à la recherche
Installer ce fichier dans votre répertoire de travail.
![]() |
x_fx_x.h |
---|
/* --------------------------------- */
/* save as x_fx_x.h */
/* --------------------------------- */
/* ---------------------------------
f'(a) = f(a+h) - f(a-h)
-------------
2h
-------------------------------- */
double fx_x(
double (*P_f)(double x),
double a,
double h
)
{
return( ( ((*P_f)(a+h))-((*P_f)(a-h)) ) / (2.*h) );
}
/* --------------------------------- */
/* --------------------------------- */
Déclaration des fichiers h.