sind

koadrobot/math/sind

Calculates sine in degree.
sind
@/sind
Calculates sine in degree.
DEGnumber
Angle in degrees.
sind
OUT
DEG
OUTnumber
To use the node in your project you should have the koadrobot/math library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

#pragma XOD dirtieness disable

struct State {
};

{{ GENERATED_CODE }}

void evaluate(Context ctx)
{
    Number x = getValue<input_DEG>(ctx)  ;
    emitValue<output_OUT>(ctx, sin(x * 0.01745329252));
}

Tabular tests

DEGOUT
00
300.5~
-300.5~
1800~
901
NaNNaN
InfNaN
-InfNaN
3600~
270-1
10.0174524~
3610.0174524~