Aller au contenu

Mathc gnuplot/0021

Un livre de Wikilivres.


Sommaire


Installer et compiler ce fichier dans votre répertoire de travail.

c00a.c
/* --------------------------------- */
/* save as  c00a.c                   */
/* --------------------------------- */
#include "x_hfile.h"
#include      "fa.h"
/* --------------------------------- */
int main(void)
{
CTRL_G w;
CTRL_H h;

  w.xmin = -2.; w.xmax = 15.;
  w.ymin = -2.; w.ymax = 1.;
           	
  h.tmin = -2.; h.tmax = 15.; h.step = 0.001;
 
 clrscrn();
 printf(" H : if(t>0) 1 else 0 \n\n"
        " Y : t-> %s       \n\n\n\n",Yeq);

     G_H(w,h,Y);

 printf(" To see the graph"
        " ... load \"a_main.plt\" ... with gnuplot.\n\n\n");
 stop();

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


Exemple de sortie écran :
 H : if(t>0) 1 else 0 

 Y : t-> -(-1)^0*H(t-0)        



 To see the graph ... load "a_main.plt" ... with gnuplot.


 Press return to continue.