Mathc initiation/Fichiers c : c76cc
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c01c.c |
---|
/* --------------------------------- */
/* save as c1c.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fc.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é de la fonction f :
Exemple de sortie écran :
f : x-> cot(x)
Df : x-> -csc(x)**2
Compute the derivative of f when x = 1.000
with Df(1.000) = -1.41228293
with fx_x(1.000) = -1.41228294
Press return to continue.
Calculons la dérivé :
y = cot(x)
y = cos(x)/sin(x)
y'= ( cos(x)/sin(x) )'
y'= -sin(x)sin(x) - cos(x)cos(x)
------------------------------
sin(x)**2
y'= -[sin(x)**2 + cos(x)**2]
------------------------------
sin(x)**2
y'= -1
----------
sin(x)**2
y'= -csc(x)**2