Sommaire


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

c00c.c
/* --------------------------------- */
/* save as c00c.c                    */
/* --------------------------------- */
#include "x_hfile.h"
#include      "fc.h"
/* --------------------------------- */
int main(void)
{
double     n = 2*200;

CTRL_splot p;

  p.xmin =  -0;
  p.xmax = +10;             
  p.ymin =  -0;
  p.ymax = +10;

tvalue t; 
 	
  t.min   = +1.; 
  t.max   = +3.;   
  t.step  =  .1;  
    
double  m = CurveLength2d_simpson(f,g,t.min,t.max,n);

 clrscrn();
 printf(" With \n\n");
 printf(" f : t-> %s  \n", feq);
 printf(" g : t-> %s\n\n", geq);
 printf(" %+.2f < t < %+.2f \n\n",t.min,t.max);

  G_Curve_2d(p,
             f,g,
             t
            );

 printf(" ... load \"a_main.plt\" ... with gnuplot.\n\n");
 
 stop(); 

 clrscrn();
 printf(" If a curve C has a smooth parametrization \n\n"
        "      f : t->  %s , g : t->  %s \n\n"
        " The area S of the surface generated by revolving\n" 
        " the graph of the curve about the y-axis is :\n\n"
        "     / b\n"
        "    |   \n"
        "    |    2 PI f(t) [Df(t)^2+Dg(t)^2]^1/2 dt = %.7f \n"
        "    |   \n"
        "   /   a\n\n\n"
        " with a = %f\n" 
        "      b = %f\n\n\n", feq, geq, 
                                     m, 
                           t.min,t.max);
                           
 stop(); 

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


Exemple de sortie écran :

 With 

 f : t-> 3*t  
 g : t-> t**2

 +1.00 < t < +3.00 

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

 Press return to continue.


Exemple de sortie écran :

 If a curve C has a smooth parametrization 

      f : t->  3*t , g : t->  t**2 

 The area S of the surface generated by revolving
 the graph of the curve about the y-axis is :

     / b
    |   
    |    2 PI f(t) [Df(t)^2+Dg(t)^2]^1/2 dt = 400.5483673 
    |   
   /   a


 with a = 1.000000
      b = 3.000000


 Press return to continue.