Aller au contenu

Mathc initiation/a145

Un livre de Wikilivres.


Sommaire


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

c00d.c
/* ---------------------------------- */
/* save as c00d.c                     */
/* ---------------------------------- */
#include  "x_hfile.h"
#include       "fd.h"
/* ---------------------------------- */
int main(void)
{
double t = 6.;
double x,y,z;
      
 clrscrn();
 printf(" If \n\n" 
        " r(t) = f(t)i + g(t)j + h(t)k\n\n\n\n" 
        " and f, g, h are differentiable, then\n\n " 
        " r'(t) = f'(t)i + g'(t)j + h'(t)k \n\n\n\n" 
        " If f, g, h are two time differentiable, then\n\n " 
        " r''(t) = f''(t)i + g''(t)j + h''(t)k \n\n\n\n");
 stop();

 clrscrn();
 printf(" Find r'(t) if  \n\n\n" 
        " r(t) = f(t)i + g(t)j + h(t)k\n\n\n" 
        " With \n\n\n");
 
 printf(" f : t-> %s  \n", feq);
 printf(" g : t-> %s  \n", geq);
 printf(" h : t-> %s\n\n", heq);
 printf(" t = %+.2f \n\n\n", t);

     x = fx_x(f,t,H);
     y = fx_x(g,t,H);
     z = fx_x(h,t,H);

 printf("  r'(t) = %+.2fi  %+.2fj  %+.2fk\n\n\n\n",x,y,z);
 stop();

 clrscrn();
 printf(" Find r''(t) if  \n\n\n" 
        " r(t) = f(t)i + g(t)j + h(t)k\n\n\n" 
        " With \n\n\n");
        
 printf(" f : t-> %s  \n", feq);
 printf(" g : t-> %s  \n", geq);
 printf(" h : t-> %s\n\n", heq);
 printf(" t = %+.2f \n\n\n", t);

     x = fx_xx(f,t,H);
     y = fx_xx(g,t,H);
     z = fx_xx(h,t,H);

 printf("  r''(t) = %+.2fi  %+.2fj  %+.2fk\n\n\n\n",x,y,z);
 
 stop();

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


Exemple de sortie écran :

 If 

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



 and f, g, h are differentiable, then

  r'(t) = f'(t)i + g'(t)j + h'(t)k 



 If f, g, h are two time differentiable, then

  r''(t) = f''(t)i + g''(t)j + h''(t)k 



 Press return to continue.


Exemple de sortie écran :

 Find r'(t) if  


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


 With 


 f : t-> cos(t)  
 g : t-> sin(t)  
 h : t-> t

 t = +6.00 


  r'(t) = +0.28i  +0.96j  +1.00k



 Press return to continue. .


Exemple de sortie écran :

 Find r''(t) if  


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


 With 


 f : t-> cos(t)  
 g : t-> sin(t)  
 h : t-> t

 t = +6.00 


  r''(t) = -0.96i  +0.28j  +0.00k



 Press return to continue.