Mathc initiation/Fichiers h : c50a6
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c00d.c |
---|
/* ---------------------------------- */
/* save as c00d.c */
/* ---------------------------------- */
#include "x_hfile.h"
#include "fd.h"
/* ---------------------------------- */
int main(void)
{
clrscrn();
printf(" f : (x,y)-> %s\n\n", feq);
printf(" v : (x)-> %s \n", veq);
printf(" u : (x)-> %s\n\n", ueq);
printf(" b = %+.1f\n a = %+.1f\n\n\n",bx,ax);
printf(" Find the surface area for the given functions\n");
printf(" with the simpson's rule.\n\n\n");
printf(" (b (v(x)\n");
printf(" int( int( sqrt(f_x()**2 + f_y()**2 + 1) dydx = %.3f\n",
S_dydx(f, u,v,LOOP, ax,bx,LOOP));
printf(" (a (u(x)\n\n\n");
printf("\n\n Press return to continue.\n");
getchar();
return 0;
}
/* ---------------------------------- */
/* ---------------------------------- */
Exemple de sortie écran :
f : (x,y)-> y + 1./2.*x**2
u : (y)-> 0
v : (y)-> 1
a = +0.0 b = +1.0
Find the surface area for the given functions
with the simpson's rule.
(b (v(x)
int( int( sqrt(f_x()**2 + f_y()**2 + 1) dydx = 1.525
(a (u(x)
Press return to continue.
Exemple de sortie écran :
Verify with maple
> restart:
>
> f := (x,y)->y+(x^2)/2:
> Int(
> Int(
>
> sqrt( diff(f(x,y),x)^2 + diff(f(x,y),y)^2 + 1),
>
> y = 0 .. 1),
> x = 0 .. 1);
1 1
/ /
| | 2
| | sqrt(x + 2) dy dx
| |
/ /
0 0
> evalf(value(%));
>
1.524504352