Mathc initiation/Fichiers c : c30ce
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c2e.c |
---|
/* --------------------------------- */
/* save as c2e.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fe.h"
/* --------------------------------- */
int main(void)
{
double i;
clrscrn();
printf(" Does lim x->oo %s exist ?\n\n", feq);
for(i=100; i<5000; i+=500)
printf(" f(%+.1f) = %5.5f \n", i, f(i));
printf(" \n\n"
" With the table we arrive at the following conjecture.\n\n"
" lim x->oo %s = e = %5.3f \n\n", feq,exp(1));
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
On peut obtenir le même résultat en utilisant la Règle de L'Hôpital. [wikipedia].
Étudions ce cas :
Exemple de sortie écran :
Does lim x->oo (1+1/x)**x exist ?
f(+100.0) = 2.70481
f(+600.0) = 2.71602
f(+1100.0) = 2.71705
f(+1600.0) = 2.71743
f(+2100.0) = 2.71763
f(+2600.0) = 2.71776
f(+3100.0) = 2.71784
f(+3600.0) = 2.71790
f(+4100.0) = 2.71795
f(+4600.0) = 2.71799
With the table we arrive at the following conjecture.
lim x->oo (1+1/x)**x = e = 2.718
Press return to continue.