Mathc initiation/Fichiers c : c76ci


Sommaire


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

c01i.c
/* --------------------------------- */
/* save as c1i.c                     */
/* --------------------------------- */
#include "x_hfile.h"
#include      "fi.h"
/* --------------------------------- */
int main(void)
{
double c  = 1;

 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-> csch(x)

 Df : x-> -coth(x)*csch(x)


  Compute the derivative of f when x = 1.000

  with   Df(1.000) = -1.11728553    
  with fx_x(1.000) = -1.11728554


 Press return to continue.


Calculons la dérivé :
        y =   csch(x)                                       
        
        y =   1/sinh(x)
        
        y'= ( 1/sinh(x) )'
        
        
        y'=   -cosh(x)
              ---------
              sinh(x)**2
                 
        y'=   -cosh(x)     1
              --------  -------
               sinh(x)  sinh(x)     
                       
        y'=   -coth(x)  csch(x)