Mathc initiation/Fichiers c : c78cc

Un livre de Wikilivres.


Sommaire


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

c01c.c
/* --------------------------------- */
/* save as c1c.c                     */
/* --------------------------------- */
#include "x_hfile.h"
#include      "fc.h"
/* --------------------------------- */
int main(void)
{
double x  = 0.8;      

 clrscrn();
 
 printf("  x = %+0.3f    \n\n\n",x);
 
 printf("  %s \t= %0.8f    \n", f1eq, f1(x));
 printf("  %s \t= %0.8f\n\n\n", f2eq, f2(x));
 
 stop();

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


Vérifions par le calcul :
  x = +0.800    


  tanh(asech(x)) 	= 0.60000000    
  sqrt(1 - x**2) 	= 0.60000000


 Press return to continue.


Vérifions les égalités :
    Nous savons que :
    
    sech(X)**2 + tanh(X)**2 = 1
    
    posons X = asech(x) 
    
            
    sech(asech(x))**2 + tanh(asech(x))**2 = 1           sech(asech(x)) = x
    
                                                       
                 x**2 + tanh(asech(x))**2 = 1
     
                        tanh(asech(x))**2 = 1 - x**2 
                      
                        tanh(asech(x))    = sqrt(1 - x**2)


Exemple d'application : (asech(x))' = -1/(x sqrt(1-x**2))