Mathc initiation/Fichiers c : c76cs
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c01s.c |
---|
/* --------------------------------- */
/* save as c1s.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fs.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-> asinh(x)
Df : x-> 1/sqrt(1+x**2)
Compute the derivative of f when x = 1.500
with Df(1.500) = 0.55470020
with fx_x(1.500) = 0.55470020
Press return to continue.
Calculons la dérivé :
y = asinh(x) *
sinh(y) = sinh(asinh(x))
sinh(y) = x
(sinh(y))' = (x)'
cosh(y) dy/dx = 1
dy/dx = 1/cosh(y)
* y = asinh(x)
d(asinh(x))/dx = 1/cosh(asinh(x))
*** cosh(asinh(x)) = sqrt(1+x**2) ***
(asinh(x))' = 1/sqrt(1+x**2)
*** cosh(asinh(x)) = sqrt(1+x**2) ***