Mathc initiation/Fichiers c : c76co


Sommaire


Installer et compiler ces fichiers dans votre répertoire de travail.

c01n.c
/* --------------------------------- */
/* save as c1o.c                     */
/* --------------------------------- */
#include "x_hfile.h"
#include      "fo.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-> asec(x)

 Df : x-> 1/(x*sqrt(x**2-1))


  Compute the derivative of f when x = 1.500

  with   Df(1.500) = 0.59628479    
  with fx_x(1.500) = 0.59628480


 Press return to continue.



Calculons la dérivé :
         y    = asec(x)                             *
        
     sec(y)   = sec(asec(x))
    
     sec(y)   = x                                   *
    
    (sec(y))' = (x)'  
       

   sec(y) tan(y) dy/dx = 1

    
                 dy/dx =  1/(sec(y) tan(y)) 
                                                    * sec(y) = x
                                                    *     y  = asec(x)     
       
       d(asec(x))/dx =  1/(x tan(asec(x))) 
                                               *** tan(asec(x)) = sqrt(x**2-1) ***    
          (asec(x))' =  1/(x sqrt(x**2-1))
 *** tan(asec(x)) = sqrt(x**2-1) ***