Mathc initiation/Fichiers h : c47a3


Sommaire

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

c16c2.c
/* --------------------------------- */
/* save as c16c2.c                   */
/* --------------------------------- */
#include "x_hfile.h"
#include      "fc.h"
/* --------------------------------- */
int main(void)
{
 clrscrn();
 printf(" Draw the two functions\n\n");

 printf("   %s = 0    \n", feq);
 printf("   %s = 0\n\n\n", geq);
 
                    G_2d(  -8,8,
                           -4,4,
                           feq,f,
                           geq,g
                           );

 printf(" ... load \"a_main.plt\" ... with gnuplot.  \n\n");

 stop();

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


Exemple de sortie écran :

 Draw the two functions

   (x**2)/9  + (y**2)/4  - 1 = 0    
   ((x-1)**2)/2 + ((y-1)**2)/3 - 1 = 0


 Open the file "a_main.plt" with gnuplot.

 Press return to continue.