Mathc initiation/Fichiers c : c78cd

Un livre de Wikilivres.


Sommaire


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

c01c.c
/* --------------------------------- */
/* save as c1d.c                     */
/* --------------------------------- */
#include "x_hfile.h"
#include      "fd.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    


  coth(acsch(x)) 	= 1.28062485    
  sqrt(1 + x**2) 	= 1.28062485


 Press return to continue.


Vérifions les égalités :
    Nous savons que :
    
    coth(X)**2 - csch(X)**2 = 1
    
    posons X = acsch(x) 
    
            
    coth(acsch(x))**2 - csch(acsch(x))**2 = 1           csch(acsch(x)) = x
      
    coth(acsch(x))**2 -              x**2 = 1   
    
    coth(acsch(x))**2                     = 1 + x**2      
    
                           coth(acsch(x)) = sqrt(1 + x**2)

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