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 的反双曲正弦。 此函数在浮点域上有效。 如果 x 是 quiet 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
sin、sinf、sinl、sinh、sinhf、sinhl