« Mathc initiation/Fichiers c : 81a » : différence entre les versions
Contenu supprimé Contenu ajouté
mAucun résumé des modifications |
mAucun résumé des modifications Balise : Révoqué |
||
Ligne 8 :
<syntaxhighlight lang="c">
/* ---------------------------------- */
/* save as
/* ---------------------------------- */
#include "x_hfile.h"
#include "
/* ---------------------------------- */
int main(void)
{
int n = 2*300;
double a =
double b =
double M = simpson(f,a,b,n);
printf(" Improper integral with the Simpson's rule.\n\n");
printf("
printf(" | %s dx = %.6f\n", feq, M);
printf(" |
printf("
▲ printf(" / a = %+.2f\n\n\n\n", a);
printf("
for(
printf("
printf(" \n\n"
" In c language
stop();
return 0;
}
Ligne 49 :
'''Exemple de sortie écran :'''
<syntaxhighlight lang="C">
Improper integral with the Simpson's rule.
/ b =
|
| exp(
|
▲ b = 10 M = 0.886227
▲ b = 100 M = 0.886227
▲ b = 1000 M = 0.693742
In c language
Press return to continue.
</syntaxhighlight>
|