Mathc initiation/Fichiers h : c47a2


Sommaire

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

c16b2.c
/* --------------------------------- */
/* save as c16b2.c                   */
/* --------------------------------- */
#include "x_hfile.h"
#include      "fb.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)/4  + (y**2)/9  - 1 = 0    
   ((x-1)**2)/10 + ((y+1)**2)/5 - 1 = 0


 Open the file "a_main.plt" with gnuplot.

 Press return to continue.