Sommaire


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

c02c.c
'
/* ---------------------------------- */
/* save as c02c.c                     */
/* ---------------------------------- */
#include "x_hfile.h"
#include       "fc.h"
/* ---------------------------------- */
int main(void)
{
 clrscrn();
 printf(" The line y = a                                          \n\n");
 printf(" is an asymptote at the curve of f at oo+ (or oo-) if :\n\n\n");
 printf("  lim    f(x)  = a                                         \n");
 printf("  x->+oo                                               \n\n\n");
 printf("                            or                         \n\n\n");
 printf("  lim    f(x) = a                                          \n");
 printf("  x->-oo                                               \n\n\n");
 getchar();
 
 clrscrn(); 
 printf(" f : x-> %s\n\n\n", feq);
 printf("       a =  lim    f(x)       = %.3f\n",f(1000000000)); 
 printf("            x->+oo            \n\n\n");

 printf(" The line y = %.3f ",                   f(1000000000));
 printf(" is an horizontal asymptote at the curve of f at +oo \n\n\n"); 
 
 stop();

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


 Dessinons avec gnuplot la fonction f et son asymptote :
  set zeroaxis lt 8
 set grid

 plot [-10.000:10.000] [-0.000:3.000] 2*x**2/(x**2+3.), 2  

 reset


Exemple de sortie écran :

 The line y = a                                          

 is an asymptote at the curve of f at oo+ (or oo-) if :


  lim    f(x)  = a                                         
  x->+oo                                               


                            or                         


  lim    f(x) = a                                          
  x->-oo


Exemple de sortie écran :

 f : x-> 2*x**2/(x**2+3.)


       a =  lim    f(x)       = 2.000
            x->+oo            


 The line y = 2.000  is an horizontal asymptote at the curve of f at +oo 


 Press return to continue.
Cet article est issu de Wikibooks. Le texte est sous licence Creative Commons - Attribution - Partage dans les Mêmes. Des conditions supplémentaires peuvent s'appliquer aux fichiers multimédias.