Aller au contenu

Mathc initiation/a262

Un livre de Wikilivres.


Sommaire


Installer et compiler ces fichiers dans votre répertoire de travail.

c2k.c
/* --------------------------------- */
/* save as c2k.c                     */
/* --------------------------------- */
#include  "x_hfile.h"
#include       "fk.h"
/* --------------------------------- */
int main(void)
{
double i;

 clrscrn();
 printf(" Does lim x->oo %s exist ?\n\n", feq);


 for(i=10000000; i<50000000; i+=5000000)
 
     printf(" f(%+.0f) = %5.6f \n", i, f(i));
     

 printf(" \n\n"
        " With the table we arrive at the following conjecture.\n\n"
        "     lim x->oo %s = e = %5.6f \n\n", feq,exp(1));
 stop();

 return 0;
}
/* --------------------------------- */
/* --------------------------------- */


Exemple de sortie écran :

 Does lim x->oo (1+6/x)**(x/6) exist ?

 f(+10000000) = 2.718281 
 f(+15000000) = 2.718281 
 f(+20000000) = 2.718281 
 f(+25000000) = 2.718282 
 f(+30000000) = 2.718282 
 f(+35000000) = 2.718282 
 f(+40000000) = 2.718282 
 f(+45000000) = 2.718282 
 

 With the table we arrive at the following conjecture.

     lim x->oo (1+6/x)**(x/6) = e = 2.718282 

 Press return to continue.