asin

xod/math/asin

Calculates arc sine.
asin
@/asin
Calculates arc sine.
INnumber
Input value in range [-1.0, 1.0]
asin
IN
RAD
RADnumber
Result angle in radians.

C++ implementation

#pragma XOD dirtieness disable

node {
    void evaluate(Context ctx) {
        Number x = getValue<input_IN>(ctx);
        emitValue<output_RAD>(ctx, asin(x));
    }
}

Tabular tests

INRAD
00
-1-1.57~
11.57~
23NaN
NaNNaN
InfNaN
-InfNaN