Mathc initiation/a282
Installer et compiler ces fichiers dans votre répertoire de travail.
c00c.c |
---|
/* ------------------------------------ */
/* Save as : c00c.c */
/* ------------------------------------ */
#include "x_hfile.h"
#include "fc.h"
/* ------------------------------------ */
int main(void)
{
double t = PI;
clrscrn();
printf(" Calculate the slope of the tangent of a polar curve\n\n\n"
" r : t-> %s \n\n"
" t = %+.2f \n\n\n", req, t);
printf(" x(t) = r(t) cos(t) \n"
" y(t) = r(t) sin(t)\n\n\n"
" dy dy/dt r(t) cos(t) + r'(t) sin(t) \n"
" -- = ----- = -------------------------- \n"
" dx dx/dt -r(t) sin(t) + r'(t) cos(t) \n\n\n");
stop();
clrscrn();
printf(" r : t-> %s \n\n"
" t = %+.2f \n\n\n", req, t);
printf(" Compute the derivative of r when t = %0.3f\n\n"
" with dy_dx(%0.3f) = %0.8f Verify -> %0.8f\n\n\n",
t, t, dy_dx(r, t, H),
3./2.);
printf(" The equation of the tangente \n\n");
eq_tan(t,r);
stop();
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Exemple de sortie écran :
Calculate the slope of the tangent of a polar curve
r : t-> 3 - 2*sin(t)
t = +3.14
x(t) = r(t) cos(t)
y(t) = r(t) sin(t)
dy dy/dt r(t) cos(t) + r'(t) sin(t)
-- = ----- = --------------------------
dx dx/dt -r(t) sin(t) + r'(t) cos(t)
Press return to continue.
Exemple de sortie écran :
r : t-> 3 - 2*sin(t)
t = +3.14
Compute the derivative of r when t = 3.142
with dy_dx(3.142) = 1.50000000 Verify -> 1.50000000
The equation of the tangente
1.500000002*t +4.500000007
Press return to continue.