Mathc initiation/a324

Un livre de Wikilivres.


Sommaire


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


c00b1.c
/* ---------------------------------- */
/* save as c00b1.c                    */
/* ---------------------------------- */
#include "x_hfile.h"
#include      "fb.h"
/* ---------------------------------- */
int main(void)
{
double m = lint3d_ds( f, 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 mass of the wire\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(" The mass is :\n\n");
 printf("         (\n");
 printf("  m = int(  F(x,y,z) ds =  %+.3f\n",  m);
 printf("         (C\n\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 mass of the wire

 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 :
 The mass is :

         (
  m = int(  F(x,y,z) ds =  +13.329
         (C


 Press return to continue.