asin asinf

計算反正弦值。

double asin( 
   double x 
);
float asin(
   float x
);  // C++ only
long double asin(
   long double x
);  // C++ only
float asinf ( 
   float x 
);

參數

  • x
    數值的反正弦值進行計算。

傳回值

asin函式會傳回數值的正弦值x π/2 弧度範圍 –π/2 中。

如果x小於-1 或大於 1, asin預設狀況下會傳回沒有限制。

輸入

SEH 例外狀況

Matherr 例外狀況

± ∞

INVALID

_DOMAIN

± QNAN,IND

_DOMAIN

|x| > 1

INVALID

_DOMAIN

備註

C + + 允許多載化,因此您可以呼叫多載的asin。在某 c 程式, asin一直使用,然後傳回 double。

需求

常式

所需的標頭

asin, asinf

<math.h>

範例

如需詳細資訊,請參閱 acos、 acosf

.NET Framework 對等用法

System::Math::Asin

請參閱

參考

浮點支援

acos acosf

atan、 atanf、 atan2、 atan2f

cos,cosf,cosh、 coshf

_matherr

sin、 sinf、 sinh、 sinhf

tan、 tanf、 tanh、 tanhf