asin

Calculates the arc sine of x, returning a value ranging from -π/2 to +π/2. Exceptions:

InvalidOperationExceptionx is signaling NaN or |x| > 1.0
InexactExceptionthe result is inexact
More...
@IEEECompliant("asin", 43)
D
asin
(
D
)
(
auto const ref D x
)

Detailed Description

Special values

xasin(x)
NaNNaN
-1.0-π/2
+1.0+π/2
< -1.0NaN
> +1.0NaN

Examples

decimal32 x = 1;
assert(asin(x) == decimal32.PI_2);
assert(asin(-x) == -decimal32.PI_2);

Meta