Calculates the arc sine of x, returning a value ranging from -π/2 to π/2.
import std.math.operations : isClose; import std.math.traits : isIdentical, isNaN; import std.math.constants : PI; assert(isIdentical(asin(0.0), 0.0)); assert(asin(0.5).isClose(PI / 6)); assert(asin(PI).isNaN);
See Implementation
Calculates the arc sine of x, returning a value ranging from -π/2 to π/2.