Sommaire


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


c00b3.c
/* ---------------------------------- */
/* save as c00b3.c                    */
/* ---------------------------------- */
#include "x_hfile.h"
#include      "fb.h"
/* ---------------------------------- */
int main(void)
{
double Ix = lint3d_ds( yyplszzf, g,h,k, a,b,LOOP);
double Iy = lint3d_ds( xxplszzf, g,h,k, a,b,LOOP);
double Iz = lint3d_ds( xxplsyyf, g,h,k, a,b,LOOP);
 
 clrscrn();
 
 printf(" If a thin wire has the shape of a curve C\n");
 printf(" and if the linear mass density at (x,y,z) is F(x,y,z),\n");
 printf(" find the moments of inertia Ix Iy and Iz with the respect to\n");
 printf(" the x-y- and z-axes, respectively.\n\n");

 printf(" With :\n\n");
 printf(" F (x,y,z) -> %s \n\n", feq);
 printf(" and C has the parametrization :\n\n\n");
 printf(" x = %s;     y = %s;  z = %s;  %.1f < t =< %.1f \n\n\n",
          geq, heq, keq, a, b);
 stop();

 clrscrn();

 printf(" Compute the moment Ix.\n\n");
 printf("          (\n");
 printf(" Ix = int( (y**2+z**2)  F(x,y) ds =  %+.3f\n",  Ix);
 printf("          (C\n\n");

 printf(" Compute the moment Iy.\n\n");
 printf("          (\n");
 printf(" Iy = int( (x**2+z**2)  F(x,y) ds =  %+.3f\n",  Iy);
 printf("          (C\n\n");

 printf(" Compute the moment Iz.\n\n");
 printf("          (\n");
 printf(" Iz = int( (x**2+y**2)  F(x,y) ds =  %+.3f\n",  Iz);
 printf("          (C\n\n");
 stop();

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



Exemple de sortie écran :
 If a thin wire has the shape of a curve C
 and if the linear mass density at (x,y,z) is F(x,y,z),
 find the moments of inertia Ix Iy and Iz with the respect to
 the x-y- and z-axes, respectively.

 With :

 F (x,y,z) -> 1 

 and C has the parametrization :


 x = cos(t);     y = sin(t);  z = (t);  0.0 < t =< 9.4 


 Press return to continue.


Exemple de sortie écran :
 Compute the moment Ix.

          (
 Ix = int( (y**2+z**2)  F(x,y) ds =  +401.310
          (C

 Compute the moment Iy.

          (
 Iy = int( (x**2+z**2)  F(x,y) ds =  +401.310
          (C

 Compute the moment Iz.

          (
 Iz = int( (x**2+y**2)  F(x,y) ds =  +13.329
          (C

 Press return to continue.