Mathc initiation/Fichiers c : c76c2d
Installer et compiler ces fichiers dans votre répertoire de travail.
c02d.c |
---|
/* --------------------------------- */
/* save as c2d.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "f2d.h"
/* --------------------------------- */
int main(void)
{
double c = .5;
clrscrn();
printf(" u : x-> %s\n\n"
" f : x-> %s\n\n"
" Df : x-> %s\n\n\n", ueq, 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 :
u : x-> x**2 + 2*x
f : x-> log_2(u(x))
Df : x-> (1/u(x)) * (1/ln(2.)) (u(x))'
Compute the derivative of f when x = 0.500
with Df(0.500) = 3.46246810
with fx_x(0.500) = 3.46246814
Press return to continue.
Calculons la dérivé :
y = log_a(u(x))
y = ln(u(x)) /ln(a)
y = ln(u(x)) (1/ln(a))
y' = (1/u(x)) (1/ln(a)) (u(x))'