Mathc initiation/Fichiers h : c43fd


Sommaire


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

c00b.c
/* ---------------------------------- */
/* save as c00b.c                     */
/* ---------------------------------- */
#include  "x_hfile.h"
#include       "fb.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"
        " t = %+.2f \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"
        " Find the curvature K at time t.\n\n",
         feq, geq, heq,   t);
 stop();

 clrscrn();
 printf(" The tangential component of"
        " acceleration at time t is \n\n"
        "           aT =  r'.r'' / ||r'|| \n\n"
        " aT = %+.3f \n\n",aT_3d(f,g,h,t));
 stop();

 clrscrn();
 printf(" The normal component of acceleration at time t is \n\n"
        "           aN =  ||r' x r''|| / ||r'|| \n\n"
        " or\n\n"
        "           aN =  sqrt( ||a||^2 - aT ^2 ) \n\n"
        " aN = %+.3f \n\n" 
        " aN = %+.3f \n\n",
          aN_3d  (f,g,h,t),
          aN_3d_2(f,g,h,t));
 stop();

 clrscrn();
 printf(" the curvature K at time t is \n\n"
        "           K =  ||r' x r''|| / ||r'||^3\n\n"
        " K = %+6.2e \n\n", K_3d(f,g,h,t));
 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

 t = +1.00 

 Find the tangential component of acceleration at time t. (aT)

 Find the normal     component of acceleration at time t. (aN)

 Find the curvature K at time t.

 Press return to continue.


Exemple de sortie écran :

 The tangential component of acceleration at time t is 

           aT =  r'.r'' / ||r'|| 

 aT = -4.927 

 Press return to continue. 


 The normal component of acceleration at time t is 

           aN =  ||r' x r''|| / ||r'|| 

 or

           aN =  sqrt( ||a||^2 - aT ^2 ) 

 aN = +6.144 

 aN = +6.144 

 Press return to continue. 



 the curvature K at time t is 

           K =  ||r' x r''|| / ||r'||^3

 K = +1.71e-01 


 Press return to continue