Mathc initiation/Fichiers h : c39a2

Un livre de Wikilivres.


Sommaire


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

c001.c
/* --------------------------------- */
/* save as c001.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  = -.5;  p.zmax    = .5;
p.rot_x =  55;  p.rot_z   = 57;
p.scale =   1;  p.scale_z =  1;

pt2d  Q = i_pt2d(-.5,-.5);

 clrscrn();

 printf(" f : (x,y)-> %s\n\n\n", feq);
 
     G_3d_p(    p,
                feq,
                f,
                Q);
                
 printf(" Open the file \"a_main.plt\" with gnuplot.\n\n");
 
 stop();

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


Vous pouvez modifier la position du point (pt2d  Q = i_pt2d(-.5,-.5);), l'angle de vue (p.rot_x =  55;  p.rot_z   = 57;) par exemple.


Exemple de sortie écran :

 f : (x,y)-> (x*y**2)/(x**2+y**4)


 Open the file "a_main.plt" with gnuplot.

 Press return to continue.