asinf, asinl, asin, asind32, asind64, and asind128 Subroutines

Purpose

Computes the arc sine.

Syntax

#include <math.h>

float asinf (x)
float x;

long double asinl (x)
long double x;

double asin (x)
double x;
_Decimal32 asind32 (x)
_Decimal32 x;

_Decimal64 asind64 (x)
_Decimal64 x;

_Decimal128 asind128 (x)
_Decimal128 x;

Description

The asinf, asinl, asin, asind32, asind64, and asind128 subroutines compute the principal value of the arc sine of the x parameter. The value of x should be in the range [-1,1].

An application wishing to check for error situations should set the errno global variable to zero and call feclearexcept(FE_ALL_EXCEPT) before calling these subroutines. On return, if errno is nonzero or fetestexcept(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW) is nonzero, an error has occurred.

Parameters

Item Description
x Specifies the value to be computed.

Return Values

Upon successful completion, the asinf, asinl, asin, asind32, asind64, and asind128 subroutines return the arc sine of x, in the range [-pi /2, pi/2] radians.

For finite values of x not in the range [-1,1], a domain error occurs, and a NaN is returned.

If x is NaN, a NaN is returned.

If x is 0, x is returned.

If x is ±Inf, a domain error occurs, and a NaN is returned.

If x is subnormal, a range error may occur and x is returned.