Sommaire


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

c00h2.c
/* ---------------------------------- */
/* save as c00h2.c                    */
/* ---------------------------------- */
#include  "x_hfile.h"
#include       "fh.h"
/* ---------------------------------- */
int main(void)
{
double t = 1;

 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-> 4*cos(t)  
 g : t-> 9*sin(t)  
 h : t-> t

   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) |
  --------------------------------------------------------------- 
 | +1.00 |  -4.93 |        +6.14         |       +6.14           |
 | +2.00 |  +4.63 |        +6.95         |       +6.95           |
 | +3.00 |  +1.01 |        +4.03         |       +4.03           |
 | +4.00 |  -4.81 |        +5.49         |       +5.49           |
 | +5.00 |  +3.75 |        +7.86         |       +7.86           |
 | +6.00 |  +1.99 |        +4.14         |       +4.14           |
 | +7.00 |  -4.38 |        +4.98         |       +4.98           |
 | +8.00 |  +2.18 |        +8.65         |       +8.65           |
 | +9.00 |  +2.90 |        +4.32         |       +4.32           |
  --------------------------------------------------------------- 
 Press return to continue.