Mathc initiation/Fichiers c : c55cd


Sommaire


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

c02d.c
/* ---------------------------------- */
/* save as c02d.c                     */
/* ---------------------------------- */
#include "x_hfile.h"
#include       "fa.h"
/* ---------------------------------- */
int main(void)
{
double Lfa = f_a(1000000000);
double Lfb = f_b(1000000000);

 clrscrn();
 printf(" The line y = a x + b              (a!=0)                \n\n");
 printf(" is an asymptote at the curve of f at oo+ (or oo-) if :\n\n\n");
 printf("  lim    f(x)                lim    [f(x)-a*x] = b      \n");
 printf("  x->+oo ----  = a    and    x->+oo                     \n");
 printf("          x                                         \n\n\n");
 printf("                            or                      \n\n\n");
 printf("  lim    f(x)                lim    [f(x)-a*x] = b      \n");
 printf("  x->-oo ----  = a    and    x->-oo                     \n");
 printf("          x                                         \n\n\n");
 stop();
 
 clrscrn(); 
 printf(" f : x-> %s\n\n\n", feq);
 printf("             lim    f(x)            \n");
 printf("         a = x->+oo ----      = %.3f\n", Lfa); 
 printf("                     x          \n\n\n");

 printf("         b = lim   [f(x)-a*x] = %.3f\n", Lfb); 
 printf("             x->+oo           \n\n\n");

 printf(" The line y = %.1f*x %+.1f", Lfa, Lfb);
 printf(" is an asymptote at the curve of f at oo+ \n\n\n"); 
                      
 stop();

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


Fichier de commande gnuplot :
# ---------------------
# Copy and past this file into the screen of gnuplot
#
#
set zeroaxis lt 3 lw 1
set grid
 plot [-20.:20.] [-20.:20.] \
           x+9./x,\
            x 
reset
# ---------------------


Exemple de sortie écran :

 The line y = a x + b              (a!=0)                

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


  lim    f(x)                lim    [f(x)-a*x] = b      
  x->+oo ----  = a    and    x->+oo                     
          x                                         


                            or                      


  lim    f(x)                lim    [f(x)-a*x] = b      
  x->-oo ----  = a    and    x->-oo                     
          x                                         


 Press return to continue.


Exemple de sortie écran :

 f : x-> (x+9./x)


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


         b = lim   [f(x)-a*x] = 0.000
             x->+oo           


 The line y = 1.0*x +0.0 is an asymptote at the curve of f at oo+ 


 Press return to continue.