Mathc initiation/Fichiers c : c76cn
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c01n.c |
---|
/* --------------------------------- */
/* save as c1n.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fn.h"
/* --------------------------------- */
int main(void)
{
double c = .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-> asin(x)
Df : x-> 1/(1-x**2)
Compute the derivative of f when x = 0.500
with Df(0.500) = 1.15470054
with fx_x(0.500) = 1.15470054
Press return to continue.
Calculons la dérivé :
y = asin(x) * y = asin(x)
sin(y) = sin(asin(x))
sin(y) = x
(sin(y))' = (x)'
cos(y) dy/dx = 1
dy/dx = 1/cos(y)
* y = asin(x)
d(asin(x))/dx = 1/cos(asin(x))
*** cos(asin(x)) = sqrt(1-x**2) ***
(asin(x))' = 1/sqrt(1-x**2)
*** cos(asin(x)) = sqrt(1-x**2) ***