#pragma XOD dirtieness disable
node {
void evaluate(Context ctx) {
Number x = getValue<input_IN>(ctx);
emitValue<output_RAD>(ctx, atan(x));
}
}
IN | RAD |
0 | 0 |
-1 | -0.79~ |
1 | 0.785~ |
3.14 | 1.26~ |
-3.14 | -1.26~ |
1.57 | 1~ |
0.7853 | 0.67~ |
NaN | NaN |
Inf | 1.57~ |
-Inf | -1.57~ |