Mathc initiation/a321
Installer et compiler ces fichiers dans votre répertoire de travail.
c00a1.c |
---|
/* ---------------------------------- */
/* save as c00a1.c */
/* ---------------------------------- */
#include "x_hfile.h"
#include "fa.h"
/* ---------------------------------- */
int main(void)
{
double m = lint2d_ds(f, g,h, a,b,LOOP);
clrscrn();
printf(" If a thin wire has the shape of a plane curve C\n");
printf(" and if the linear mass density at (x,y) is F(x,y),\n");
printf(" find the mass of the wire\n\n");
printf(" With :\n\n");
printf(" F (x,y) -> %s \n\n", feq);
printf(" and C has the parametrization :\n\n\n");
printf(" x = %s; y = %s; %.1f < t =< %.1f \n\n\n",
geq, heq, a, b);
stop();
clrscrn();
printf(" The mass is :\n\n");
printf(" (\n");
printf(" m = int( F(x,y) 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 plane curve C
and if the linear mass density at (x,y) is F(x,y),
find the mass of the wire
With :
F (x,y) -> y
and C has the parametrization :
x = cos(t); y = sin(t); 0.0 < t =< 3.1
Press return to continue.
Exemple de sortie écran :
The mass is :
(
m = int( F(x,y) ds = +2.000
(C
Press return to continue.