atan

xod/math/atan

Calculates arc tangent.
atan
@/atan
Calculates arc tangent.
INnumber
Input tangent value
atan
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, atan(x));
    }
}

Tabular tests

INRAD
00
-1-0.79~
10.785~
3.141.26~
-3.14-1.26~
1.571~
0.78530.67~
NaNNaN
Inf1.57~
-Inf-1.57~