Sommaire


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

c00e.c
/* ---------------------------------- */
/* save as c00e.c                     */
/* ---------------------------------- */
#include  "x_hfile.h"
#include       "fe.h"
/* ---------------------------------- */
int main(void)
{
double t = 2.;
double speed;

v2d n;

 clrscrn();
 printf(" If \n\n" 
        " r(t) = f(t)i + g(t)j\n\n" 
        " is the position vector of a moving point\n" 
        " P, find its velocity, acceleration, and \n" 
        " speed at the given time t.\n\n");

 printf(" With \n\n");
 printf(" f : t-> %s    \n", feq);
 printf(" g : t-> %s  \n\n", geq);
 printf(" t = %+.2f   \n\n", t);

     n.i = fx_x((f),t,H);
     n.j = fx_x((g),t,H);

   speed = norm2d(n);

 printf(" r' (%+.2f) =   v(%+.3f)   = %+.3fi  %+.3fj\n\n",t,t,n.i,n.j);
 printf(" The speed  = ||v(%+.3f)|| =  %+.3f        \n\n",t,speed);

     n.i = fx_xx((f),t,H);
     n.j = fx_xx((g),t,H);

 printf(" r''(%+.2f) =   a(%+.3f)   = %+.3fi  %+.3fj\n\n",t,t,n.i,n.j);

 stop();

 return 0;
}
/* ---------------------------------- */
/* ---------------------------------- */


Exemple de sortie écran :

 If 

 r(t) = f(t)i + g(t)j

 is the position vector of a moving point
 P, find its velocity, acceleration, and 
 speed at the given time t.

 With 

 f : t-> 2./t    
 g : t-> 3./(t+1.)  

 t = +2.00   

 r' (+2.00) =   v(+2.000)   = -0.500i  -0.333j

 The speed  = ||v(+2.000)|| =  +0.601        

 r''(+2.00) =   a(+2.000)   = +0.500i  +0.222j

 Press return to continue. .