Mathc initiation/Fichiers c : c76ch
Installer et compiler ces fichiers dans votre répertoire de travail.
c01f.c |
---|
/* --------------------------------- */
/* save as c1h.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fh.h"
/* --------------------------------- */
int main(void)
{
double c = 1;
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é :
f : x-> sec(x)
Df : x-> tan(x)*sec(x)
Compute the derivative of f when x = 1.000
with Df(1.000) = 2.88247470
with fx_x(1.000) = 2.88247479
Press return to continue.
Calculons la dérivé :
y = sech(x)
y = 1/cosh(x)
y'= ( 1/cosh(x) )'
y'= -sinh(x)
----------
cosh(x)**2
y'= -sinh(x) 1
-------- -------
cosh(x) cosh(x)
y'= -tanh(x) sech(x)