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 =   PI/6.;  

 clrscrn();
 
 printf(" Calculate the slope of the tangent of a polar curve\n\n\n"
        " r : t-> %s  \n\n" 
        " t = %+.2f \n\n\n", req, t);
 
 printf(" x(t) = r(t) cos(t)    \n"
        " y(t) = r(t) sin(t)\n\n\n"
        
        " dy    dy/dt     r(t) cos(t) + r'(t) sin(t)      \n"
        " --  = -----  =  --------------------------      \n"
        " dx    dx/dt    -r(t) sin(t) + r'(t) cos(t)  \n\n\n");
 stop();
 
 clrscrn();
 
 printf(" r : t-> %s  \n\n" 
        " t = %+.2f \n\n\n", req, t);
  
 printf("  Compute the derivative of r when t = %0.3f\n\n"   
        "  with dy_dx(%0.3f) = %0.8f Verify -> %0.8f\n\n\n", 
          t, t, dy_dx(r, t, H), 
          
           3*sqrt(3.)/5. );
          
          
 printf("  The equation of the tangente \n\n");          
 eq_tan(t,r);

 stop();

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


Exemple de sortie écran :

 Calculate the slope of the tangent of a polar curve


 r : t-> sec(2.*t)  

 t = +0.52 


 x(t) = r(t) cos(t)    
 y(t) = r(t) sin(t)


 dy    dy/dt     r(t) cos(t) + r'(t) sin(t)      
 --  = -----  =  --------------------------      
 dx    dx/dt    -r(t) sin(t) + r'(t) cos(t)  


 Press return to continue.


Exemple de sortie écran :

 r : t-> sec(2.*t)  

 t = +0.52 


  Compute the derivative of r when t = 0.524

  with dy_dx(0.524) = 1.03923040 Verify -> 1.03923048


  The equation of the tangente 

 1.039230400*t -0.799999853


 Press return to continue.