Mathc initiation/Fichiers c : c76c2a
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c02a.c |
---|
/* --------------------------------- */
/* save as c2a.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "f2a.h"
/* --------------------------------- */
int main(void)
{
double c = 5.3;
clrscrn();
printf(" f : x-> %s\n\n"
" Df : x-> %s\n\n\n", feq, Dfeq);
printf(" Compute the derivative of f when x = %0.3f\n\n", c);
printf(" with Df(%0.3f) = %0.8f \n",c, Df(c));
printf(" with fx_x(%0.3f) = %0.8f\n\n\n",c, fx_x(f,c,H));
stop();
return 0;
}
/* ---------------------------------- */
/* ---------------------------------- */
Calculons la dérivé de la fonction f :
Exemple de sortie écran :
f : x-> 2**x
Df : x-> 2**x ln(2)
Compute the derivative of f when x = 5.300
with Df(5.300) = 27.30765693
with fx_x(5.300) = 27.30765695
Press return to continue.
Calculons la dérivé :
x
y = a
x
ln(a )
y = e
x ln(a)
y = e
x ln(a)
y' = e ln(a)
x
ln(a )
y' = e ln(a)
x
y' = a ln(a)