Mathc initiation/0008
Installer et compiler ces fichiers dans votre répertoire de travail.
![]() |
c00c.c |
---|
/* --------------------------------- */
/* save as c00c.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fa.h"
/* --------------------------------- */
int main(void)
{
CTRL_splot w;
w.xmin = +0.0; w.xmax = +2.0*PI;
w.ymin = -1.0; w.ymax = +1.0;
double a = PI/4.;
double b = 3.*PI/4.;
double step = .1;
G_fab_2d( w,
a,b,
step,
f);
clrscrn();
printf(" Draw the function y = %s \n\n"
" ... load \"a_main.plt\" ... with gnuplot.\n\n\n",feq);
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Dessiner à partir d'une fonction [a ... b]
Exemple de sortie écran :
Draw the function y = sin(x)
... load "a_main.plt" ... with gnuplot.
Press return to continue.