Mathc initiation/Fichiers c : c76c2c

Un livre de Wikilivres.


Sommaire


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

c02c.c
/* --------------------------------- */
/* save as c2c.c                     */
/* --------------------------------- */
#include "x_hfile.h"
#include      "f2c.h"
/* --------------------------------- */
int main(void)
{
double c  =   .5;

 clrscrn();
 printf("  u : x-> %s\n\n"
        "  f : x-> %s\n\n" 
        " Df : x-> %s\n\n\n", ueq, 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 :
  u : x-> x**2 + 2*x

  f : x-> 2**(u(x))

 Df : x-> 2**(u(x))  ln(2) (2*x+2) 


  Compute the derivative of f when x = 0.500

  with   Df(0.500) = 4.94577335    
  with fx_x(0.500) = 4.94577342


 Press return to continue.



Calculons la dérivé :
                  u(x)
          y    = a      
                                                  
                      u(x)
                  ln(a   )
          y    = e  
          
                      
                  u(x) ln(a)
          y    = e 
          
          
          
                   u(x) ln(a)
          y'    = e           ln(a)  (u(x))'
          
           
                       u(x)
                   ln(a   )
          y'    = e           ln(a) (u(x))'    
          
          
                   u(x)
          y'    = a           ln(a) (u(x))'