asin, asinf

Calculate the arcsine.

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

Параметры

  • x
    Value whose arcsine is to be calculated.

Возвращаемое значение

The asin function returns the arcsine of x in the range –π/2 to π/2 radians.

If x is less than –1 or greater than 1, asin returns an indefinite by default.

Input

SEH Exception

Matherr Exception

± ∞

INVALID

_DOMAIN

± QNAN,IND

none

_DOMAIN

|x|>1

INVALID

_DOMAIN

Заметки

C++ allows overloading, so you can call overloads of asin. In a C program, asin always takes and returns a double.

Требования

Routine

Required header

asin, asinf

<math.h>

Пример

For more information, see acos, acosf.

Эквивалент в .NET Framework

System::Math::Asin

См. также

Основные понятия

Floating-Point Support

acos, acosf

atan, atanf, atan2, atan2f

cos, cosf, cosh, coshf

_matherr

sin, sinf, sinh, sinhf

tan, tanf, tanh, tanhf