« Mathc initiation/Fichiers h : c59a4 » : différence entre les versions
Contenu supprimé Contenu ajouté
petit correction |
petit correction |
||
Ligne 7 : | Ligne 7 : | ||
Installer ce fichier dans votre répertoire de travail. |
Installer ce fichier dans votre répertoire de travail. |
||
{{Fichier| |
{{Fichier|x_fx.h|largeur=70%|info=|icon=Crystal Clear mimetype source h.png}} |
||
<syntaxhighlight lang="c"> |
<syntaxhighlight lang="c"> |
||
/* ---------------------------------- */ |
/* ---------------------------------- */ |
Version du 9 août 2021 à 13:30
Installer ce fichier dans votre répertoire de travail.
x_fx.h |
---|
/* ---------------------------------- */
/* save as x_fx.h */
/* ---------------------------------- */
double fx_x(
double (*P_f)(double x),
double a,
double h
)
{
double tplsh;
double tmnsh;
tplsh = ((*P_f)(a+h));
tmnsh = ((*P_f)(a-h));
return(( tplsh-tmnsh)/(2.*h) );
}
/* ---------------------------------- */
/* ---------------------------------- */
Déclaration des fichiers h.