« Mathc initiation/c33cc » : différence entre les versions

Contenu supprimé Contenu ajouté
petit correction
 
petit correction
Ligne 11 :
<syntaxhighlight lang="c">
/* ---------------------------------- */
/* save as c17dc17c.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fdfc.h"
/* --------------------------------- */
int main(void)
Ligne 27 :
 
ay = 0;
by = 34;
n = 2*150;
ny = 2*150;
M = trapezoid_dxdy(f, u,v,n, ay,by,ny);
 
 
printf(" With the trapezoidal's rule.\n\n");
Ligne 44 ⟶ 43 :
}
/* --------------------------------- */
 
</syntaxhighlight>
 
Ligne 53 ⟶ 51 :
<syntaxhighlight lang="dos">
 
f : (x,y)-> sqrt(9-yx**2)3+4*y
 
 
u : (y)-> 0y/2.
 
v : (y)-> sqrt(9-y**2)
 
 
Ligne 66 ⟶ 64 :
With the trapezoidal's rule.
 
(34.000 (sqrt(9-y**2)
int( int( sqrt(9-yx**2)3+4*y dx dy = 1710.999950666577
(0.000 (0y/2.
 
 
Press return to continue.
 
 
</syntaxhighlight>