共用方式為


asinh、asinhf、asinhl

計算反雙曲正弦。

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

參數

  • x
    浮點值。

傳回值

asinh 函式會傳回 x 的反雙曲正弦 (Arc 雙曲正弦)。 此函式在浮點網域中有效。 若 x 為無訊息 NaN、不確定或無限大,則會傳回相同的值。

輸入

SEH 例外狀況

_matherr 例外狀況

± QNAN、IND、INF

備註

當您使用 C++ 時,可以呼叫採用並傳回 float 或 long double 值的 asinh 的多載。 在 C 程式中,asinh 會一律採用並傳回 double。

需求

函式

C 標頭

C++ 標頭

asinh, asinhf, asinhl

<math.h>

<cmath>

如需其他相容性資訊,請參閱 相容性

範例

// 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 );
}
  

.NET Framework 對等用法

不適用。若要呼叫標準 C 函式,請使用 PInvoke。如需詳細資訊,請參閱平台叫用範例

請參閱

參考

浮點支援

長雙精度

cos、cosf、cosl、cosh、coshf、coshl

acosh、acoshf、acoshl

sin、sinf、sinl、sinh、sinhf、sinhl

tan、tanf、tanl、tanh、tanhf、tanhl

atanh、atanhf、atanhl

_CItan