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 a = 0;
double b = PI/4;

double n = 2*100;

double x = simpson(f,a,b,n);
double y = simpson(g,a,b,n);
double z = simpson(h,a,b,n);

 clrscrn();
 printf(" r(t) a vector function \n\n\n");

 printf("     / b           / b                            \n");
 printf("    |             |                               \n");
 printf("    |   r(t) dt = |    f(t)i + g(t)j + h(t)k dt = \n");
 printf("    |             |                               \n");
 printf("   /   a          /   a                     \n\n\n\n");
                                                                
 printf("     / b            / b           / b           / b          \n");
 printf("    |              |             |             |             \n");
 printf("    |   r(t) dt = (|f(t)dt) i + (|g(t)dt) j + (|h(t)dt) k =  \n");
 printf("    |              |             |             |             \n");
 printf("   /   a          /   a         /   a         /   a    \n\n\n\n");

 stop();

 clrscrn();
 
 printf("     / b           / b                            \n");
 printf("    |             |                               \n");
 printf("    |   r(t) dt = |    f(t)i + g(t)j + h(t)k dt = \n");
 printf("    |             |                               \n");
 printf("   /   a          /   a                       \n\n\n");
 
 printf(" With \n\n");
 printf(" f : t-> %s  \n", feq);
 printf(" g : t-> %s  \n", geq);
 printf(" h : t-> %s\n\n", heq);
 printf(" %+.2f < t < %+.2f \n\n\n",a,b);

 printf("     / b          \n");
 printf("    |             \n");
 printf("    |   r(t) dt = %+.6fi  %+.6fj  %+.6fk\n",x,y,z);
 printf("    |             \n");
 printf("   /   a          \n\n");

 stop();

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


Exemple de sortie écran :

 r(t) a vector function 


     / b           / b                            
    |             |                               
    |   r(t) dt = |    f(t)i + g(t)j + h(t)k dt = 
    |             |                               
   /   a          /   a                     



     / b            / b           / b           / b          
    |              |             |             |             
    |   r(t) dt = (|f(t)dt) i + (|g(t)dt) j + (|h(t)dt) k =  
    |              |             |             |             
   /   a          /   a         /   a         /   a    



 Press return to continue.


Exemple de sortie écran :

     / b           / b                            
    |             |                               
    |   r(t) dt = |    f(t)i + g(t)j + h(t)k dt = 
    |             |                               
   /   a          /   a                       


 With 

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

 +0.00 < t < +0.79 


     / b          
    |             
    |   r(t) dt = +0.292893i  -0.707107j  +0.346574k
    |             
   /   a          

 Press return to continue.