Mathc initiation/a393
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c00a.c |
|---|
/* --------------------------------- */
/* save as c00a.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fa.h"
/* --------------------------------- */
int main(void)
{
double M = simpson_dydx(f, u,v,LOOP, a,b,LOOP);
clrscrn();
printf(" If the variables are separable, you can use the product\n"
" of two simple integrals, instead of a double integral"
" ... See c00a2.c\n\n");
printf(" f : (x,y)-> %s \n\n", feq);
printf(" v : (x)-> %s \n", veq);
printf(" u : (x)-> %s \n\n", ueq);
printf(" b : %s \n", beq);
printf(" a : %s\n\n\n", aeq);
printf(" (%s (%s\n", beq,veq);
printf(" int( int( %s dy dx = %.6f\n", feq, M);
printf(" (%s (%s\n\n\n", aeq,ueq);
printf(" Code Mathematica:\n\n"
" integral x**2*cos(y) dy dx from 0 to 3 from 0 to 2\n\n");
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
If the variables are separable, you can use the product
of two simple integrals, instead of a double integral ... See c00a2.c
f : (x,y)-> x**2 * cos(y)
v : (x)-> 2
u : (x)-> 0
b : 3
a : 0
(3 (2
int( int( x**2 * cos(y) dy dx = 8.183677
(0 (0
Code Mathematica:
integral x**2*cos(y) dy dx from 0 to 3 from 0 to 2
Press return to continue.