?
This document uses PHP Chinese website manual Release
在頭文件<math.h>中定義 | ||
---|---|---|
float asinhf( float arg ); | (1) | (since C99) |
double asinh( double arg ); | (2) | (since C99) |
long double asinhl( long double arg ); | (3) | (since C99) |
Defined in header <tgmath.h> | ||
#define asinh( arg ) | (4) | (since C99) |
1-3)計(jì)算的反雙曲正弦arg
。
4)類型 - 通用宏:如果參數(shù)具有類型long double
,asinhl
則被調(diào)用。否則,如果參數(shù)具有整數(shù)類型或類型double
,asinh
則調(diào)用該參數(shù)。否則,asinhf
被調(diào)用。如果參數(shù)是復(fù)雜的,則宏調(diào)用相應(yīng)的復(fù)變函數(shù)(casinhf
,casinh
,casinhl
)。
arg | - | 浮點(diǎn)值代表雙曲線區(qū)域的面積 |
---|
如果沒有錯(cuò)誤發(fā)生,則arg
(sinh-1)的反雙曲正弦
(arg)或arsinh(arg))。
如果由于下溢而發(fā)生范圍錯(cuò)誤,則返回正確的結(jié)果(舍入后)。
按照math_errhandling中的指定報(bào)告錯(cuò)誤。
如果實(shí)現(xiàn)支持IEEE浮點(diǎn)運(yùn)算(IEC 60559),
如果參數(shù)為±0或±∞,則不加修改地返回
如果參數(shù)是NaN,則返回NaN
雖然C標(biāo)準(zhǔn)將此函數(shù)命名為“弧雙曲正弦”,但雙曲函數(shù)的反函數(shù)是區(qū)域函數(shù)。他們的論點(diǎn)是雙曲線領(lǐng)域,而不是弧線。正確的名稱是“反雙曲正弦”(由POSIX使用)或“區(qū)域雙曲正弦”。
#include <stdio.h>#include <math.h> int main(void){ printf("asinh(1) = %f\nasinh(-1) = %f\n", asinh(1), asinh(-1)); // special values printf("asinh(+0) = %f\nasinh(-0) = %f\n", asinh(0.0), asinh(-0.0));}
輸出:
asinh(1) = 0.881374asinh(-1) = -0.881374asinh(+0) = 0.000000asinh(-0) = -0.000000
C11標(biāo)準(zhǔn)(ISO / IEC 9899:2011):
7.12.5.2 asinh函數(shù)(p:240-241)
7.25類型通用數(shù)學(xué)<tgmath.h>(p:373-375)
F.10.2.2 asinh函數(shù)(p:520)
C99標(biāo)準(zhǔn)(ISO / IEC 9899:1999):
7.12.5.2 asinh函數(shù)(p:221)
7.22類型通用數(shù)學(xué)<tgmath.h>(p:335-337)
F.9.2.2 asinh函數(shù)(p:457)