Mathc initiation/Fichiers c : c76cl
Installer et compiler ces fichiers dans votre répertoire de travail.
c01l.c |
---|
/* --------------------------------- */
/* save as c1l.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fl.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-> acot(x)
Df : x-> -1/(x**2+1)
Compute the derivative of f when x = 1.000
with Df(1.000) = -0.50000000
with fx_x(1.000) = -0.50000000
Press return to continue.
Calculons la dérivé :
y = acot(x) (*)
cot(y) = cot(acot(x))
cot(y) = x (**)
(cot(y))' = (x)'
-csc**2(y) dy/dx = 1
dy/dx = -1/csc**2(y) csc**2(x) - cot**2(x) = 1
csc**2(x) = cot**2(x) + 1
dy/dx = -1/(cot**2(y) + 1)
cot(y) = x (**)
dy/dx = -1/(x**2 + 1)
y = acot(x) (*)
d(acot(x))/dx = -1/(x**2 + 1)
(acot(x))' = -1/(x**2 + 1)