Mathc initiation/Fichiers c : c56cc
Installer et compiler ces fichiers dans votre répertoire de travail.
c02c.c |
---|
/* ---------------------------------- */
/* save as c02c.c */
/* ---------------------------------- */
#include "x_hfile.h"
#include "fa.h"
/* ---------------------------------- */
int main(void)
{
double i;
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(" Compute : lim [f(x)-a*x] = b (with a = 2) \n");
printf(" x->+oo \n\n\n");
for(i=1; i<10; i+=1)
printf(" L2(%+.0f) = %5.3f || L2(%+.0f) = %.3f\n",
i*100, f_b(i*100),
i*1000000000,f_b(i*1000000000)
);
printf("\n\n");
printf(" The computation gives the impression of : b = %.3f\n\n",
f_b(i*1000000000));
stop();
return 0;
}
/* ---------------------------------- */
/* ---------------------------------- */
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)**3/x**2)
Compute : lim [f(x)-a*x] = b (with a = 2)
x->+oo
L2(+100) = -2.970 || L2(+1000000000) = -3.000
L2(+200) = -2.985 || L2(+2000000000) = -3.000
L2(+300) = -2.990 || L2(+3000000000) = -3.000
L2(+400) = -2.993 || L2(+4000000000) = -3.000
L2(+500) = -2.994 || L2(+5000000000) = -3.000
L2(+600) = -2.995 || L2(+6000000000) = -3.000
L2(+700) = -2.996 || L2(+7000000000) = -3.000
L2(+800) = -2.996 || L2(+8000000000) = -3.000
L2(+900) = -2.997 || L2(+9000000000) = -3.000
The computation gives the impression of : b = -3.000
Press return to continue.