Mathc initiation/a149
Installer et compiler ces fichiers dans votre répertoire de travail.
c00g2.c |
---|
/* ---------------------------------- */
/* save as c00g2.c */
/* ---------------------------------- */
#include "x_hfile.h"
#include "fg.h"
/* ---------------------------------- */
int main(void)
{
double t = 4;
clrscrn();
printf(" The position vector of a moving point at time t is \n\n"
" r(t) = f(t)i + g(t)j + h(t)k \n\n"
" With \n\n"
" f : t-> %s \n"
" g : t-> %s \n"
" h : t-> %s\n\n"
" 1 < t < 5 \n\n"
" Find the tangential component of acceleration at time t. (aT)\n\n"
" Find the normal component of acceleration at time t. (aN)\n\n",
feq, geq, heq);
stop();
clrscrn();
printf(
" --------------------------------------------------------------- \n"
" | t | aT | aN=||r'xr''||/||r'|| | aN=sqrt(||a||^2-aT^2) |\n"
" --------------------------------------------------------------- \n");
for(;t<10;t++)
printf(
" | %+3.2f | %+6.2f | %+6.2f | %+6.2f |\n",
t,
aT_3d ( f,g,h,t,H),
aN_3d ( f,g,h,t,H),
aN_3d_2( f,g,h,t,H));
printf(
" --------------------------------------------------------------- \n");
stop();
return 0;
}
/* ---------------------------------- */
/* ---------------------------------- */
Exemple de sortie écran :
The position vector of a moving point at time t is
r(t) = f(t)i + g(t)j + h(t)k
With
f : t-> t
g : t-> t**2
h : t-> t**3
1 < t < 5
Find the tangential component of acceleration at time t. (aT)
Find the normal component of acceleration at time t. (aN)
Press return to continue.
Exemple de sortie écran :
---------------------------------------------------------------
| t | aT | aN=||r'xr''||/||r'|| | aN=sqrt(||a||^2-aT^2) |
---------------------------------------------------------------
| +4.00 | +24.00 | +2.03 | +2.03 |
| +5.00 | +30.00 | +2.02 | +2.02 |
| +6.00 | +36.00 | +2.02 | +2.02 |
| +7.00 | +42.00 | +2.01 | +2.01 |
| +8.00 | +48.00 | +2.01 | +2.01 |
| +9.00 | +54.00 | +2.01 | +2.01 |
---------------------------------------------------------------
Press return to continue.