Mathc initiation/c34a2

Un livre de Wikilivres.


Sommaire


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

c01b.c
/* --------------------------------- */
/* save as c01b.c                    */
/* --------------------------------- */
#include  "x_hfile.h"
#include       "fb.h"
/* --------------------------------- */
int main(void)
{
CTRL_splot p;
		
p.xmin  = -3,  p.xmax    =  3;
p.ymin  = -3,  p.ymax    =  3;
p.zmin = -.5,  p.zmax    =  2;
p.rot_x = 55,  p.rot_z   = 57;
p.scale =  1,  p.scale_z =  1;

pt2d Q = i_pt2d(1,0.);

double SizeSide = .5;

 clrscrn();

 printf(" f : (x,y)-> %s\n\n\n", feq);

     G_3d_v2(   p,
                feq,f,
                f_mnsz,
                Q,
                SizeSide);

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

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


Exemple de sortie écran :

 f : (x,y)-> cos(x)+cos(y)


 Open the file "a_main.plt" with gnuplot.

 Press return to continue.