Mathc initiation/Fichiers c : c76ct
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c01t.c |
---|
/* --------------------------------- */
/* save as c1t.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "ft.h"
/* --------------------------------- */
int main(void)
{
double c = 1.5;
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-> acosh(x)
Df : x-> 1/sqrt(x**2-1)
Compute the derivative of f when x = 1.500
with Df(1.500) = 0.89442719
with fx_x(1.500) = 0.89442720
Press return to continue.
Calculons la dérivé :
y = acosh(x) *
cosh(y) = cosh(acosh(x))
cosh(y) = x
(cosh(y))' = (x)'
sinh(y) dy/dx = 1
dy/dx = 1/sinh(y)
* y = acosh(x)
d(acosh(x))/dx = 1/sinh(acosh(x))
*** sinh(acosh(x)) = sqrt(x**2-1) ***
(acosh(x))' = 1/sqrt(x**2-1)
*** sinh(acosh(x)) = sqrt(x**2-1)) ***