Installer et compiler ces fichiers dans votre répertoire de travail.
![]() |
c02d.c ' |
---|
/* ---------------------------------- */
/* save as c02d.c */
/* ---------------------------------- */
#include "x_hfile.h"
#include "fd.h"
/* ---------------------------------- */
int main(void)
{
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", f_a(1000000000));
printf(" x \n\n\n");
printf(" b = lim [f(x)-a*x] = %.3f\n", f_b(1000000000));
printf(" x->+oo \n\n\n");
printf(" The line y = %.1f*x %+.1f",
f_a(1000000000),f_b(1000000000));
printf(" is an 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 [-5.000:5.000] [-1.000:10.000] x+1.+sqrt(x*x-3.*x+2.), 2.*x-(1./2.)
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+1.+sqrt(x*x-3.*x+2.)
lim f(x)
a = x->+oo ---- = 2.000
x
b = lim [f(x)-a*x] = -0.500
x->+oo
The line y = 2.0*x -0.5 is an 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.