Partager via


asinh, asinhf, asinhl

Calcule le sinus hyperbolique inverse.

Syntaxe

double asinh( double x );
float asinhf( float x );
long double asinhl( long double x );
#define asinh(X) // Requires C11 or higher

float asinh( float x );  // C++ only
long double asinh( long double x );  // C++ only

Paramètres

x
Valeur à virgule flottante.

Valeur retournée

Les asinh fonctions retournent le sinus hyperbolique inverse (l’arc hyperbolique sine) de x. Cette fonction est valide sur le domaine à virgule flottante. Si x est une valeur NaN silencieuse, est indéfini ou infini, la même valeur est retournée.

Entrée Exception SEH Exception _matherr
± QNaN, IND, INF aucune aucune

Notes

Quand vous utilisez C++, vous pouvez appeler des surcharges d' asinh qui acceptent et retournent des valeurs float ou long double . Dans un programme C, sauf si vous utilisez la <macro tgmath.h> pour appeler cette fonction, asinh prend toujours et retourne double.

Si vous utilisez la <macro tgmath.h>asinh() , le type de l’argument détermine la version de la fonction sélectionnée. Pour plus d’informations, consultez les mathématiques génériques de type.

Par défaut, l’état global de cette fonction est limité à l’application. Pour modifier ce problème, consultez l’état global dans le CRT.

Spécifications

Fonction En-tête C requis En-tête C++ requis
asinh, asinhf, asinhl <math.h> <cmath> ou <math.h>
asinh() macro <tgmath.h>

Pour plus d’informations sur la compatibilité, consultez Compatibility.

Exemple

// crt_asinh.c
// Compile by using: cl /W4 crt_asinh.c
// This program displays the hyperbolic sine of pi / 4
// and the arc hyperbolic sine of the result.

#include <math.h>
#include <stdio.h>

int main( void )
{
   double pi = 3.1415926535;
   double x, y;

   x = sinh( pi / 4 );
   y = asinh( x );
   printf( "sinh( %f ) = %f\n", pi/4, x );
   printf( "asinh( %f ) = %f\n", x, y );
}
sinh( 0.785398 ) = 0.868671
asinh( 0.868671 ) = 0.785398

Voir aussi

Prise en charge mathématique et à virgule flottante
acosh, acoshf, acoshl
atanh, atanhf, atanhl
cosh, coshf, coshl
sinh, sinhf, sinhl
tanh, tanhf, tanhl