Mathc initiation/Fichiers h : c42a2


Sommaire


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

c005.c
/* --------------------------------- */
/* save as c005.c                    */
/* --------------------------------- */
#include  "x_hfile.h"
#include       "fa.h"
/* --------------------------------- */
int main(void)
{
CTRL_splot p;

p.xmin  =  -1;  p.xmax    =  1;
p.ymin  =  -1;  p.ymax    =  1;
p.zmin  = -1.5; p.zmax    = 1.5;
p.rot_x =  55;  p.rot_z   = 57;
p.scale =   1;  p.scale_z =  1;

double  n = p.ymin;
double  h = .001; 

 clrscrn();
 
 while((n+=.03)<p.ymax)
{
	 pause(9.E7);
     
     G_3d_ty(   p,
                feq,f,
                i_pt2d(0.5,n),
                h);       
}

 printf(" Open the file \"a_main.plt\" with gnuplot.\n\n");
 
 stop();

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


Exemple de sortie écran :

  Open the file  a_main.plt  with gnuplot.

 Press return to continue.