#pragma XOD dirtieness disable
node {
void evaluate(Context ctx) {
Number x = getValue<input_RAD>(ctx);
emitValue<output_OUT>(ctx, tan(x));
}
}| RAD | OUT |
| 0 | 0 |
| 3.14 | -1.2~ |
| -3.14 | 1.2~ |
| 0.785 | 1~ |
| -0.785 | -1~ |
| 0.5235 | 0.577~ |
| -0.5235 | -0.577~ |
| NaN | NaN |
| Inf | NaN |
| -Inf | NaN |