Mathc initiation/Fichiers c : c23cd


Sommaire


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

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

 clrscrn();
 printf("   f : x-> %s\n\n" 
        " Df2 : x-> %s\n\n\n", feq, Dfeq2);

 printf("  Compute the second derivative of f when x = %0.3f\n\n", c);   
  
 printf("  with   Df2(%0.3f) = %0.3f  \n",c, Df2(c));
 printf("  with fx_xx(%0.3f) = %0.3f\n\n",c, fx_xx(f,c,H));

 stop();

 return 0;
}
/* ---------------------------------- */
/* ---------------------------------- */


Exemple de sortie écran :

   f : x-> 3.0*x**2 - 2.0*x - 5.0

 Df2 : x-> 6.0


  Compute the second derivative of f when x = 1.000

  with   Df2(1.000) = 6.000  
  with fx_xx(1.000) = 6.000

 Press return to continue