Mathc initiation/a436

Un livre de Wikilivres.


Sommaire


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


c0a2.c
/* --------------------------------- */
/* save as c0a2.c                    */
/* --------------------------------- */
#include   "x_afile.h"
#include        "fa.h"
/* --------------------------------- */
int main(void)
{
CTRL_splot w;
		
w.xmin  = -0.,  w.xmax    =  3.;
w.ymin  = -0.,  w.ymax    =  3.;
w.zmin  = -0.,  w.zmax    =  5.;
w.rot_x = 55.,  w.rot_z   = 57.;
w.scale =  1.,  w.scale_z =  1.;

 clrscrn();

 printf(" Draw the volume :\n\n");
 
 printf(" v : x,y   -> %s  \n", veq);
 printf(" u : x,y   -> %s\n\n", ueq);
  
 printf(" t : x     -> %s  \n", teq);
 printf(" s : x     -> %s\n\n", seq);

 printf(" b :       -> %s  \n", bxeq); 
 printf(" a :       -> %s\n\n", axeq);
 
     G_vf(   w,
           veq);

 stop();

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


Exemple de sortie écran :

 Draw the volume :

 v : x,y   -> (+cos(x)*sin(y) + 4)  
 u : x,y   -> 0

 t : x     -> +3  
 s : x     -> -0

 b :       -> +3  
 a :       -> -0

 ... load "a_main.plt" ... with gnuplot.

 Press return to continue.