v-tangens-mathe

hio/nwt-gus-hi/v-tangens-mathe

Berechnet den Tangens eines Winkels
v-tangens-mathe
@/v-tangens-mathe
Berechnet den Tangens eines Winkels
Radiusnumber
Winkel als Radius
v-tangens-mathe
Ausgabe
Radius
Ausgabenumber
To use the node in your project you should have the hio/nwt-gus-hi 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

node {
    void evaluate(Context ctx) {
        Number x = getValue<input_Radius>(ctx);
        emitValue<output_Ausgabe>(ctx, tan(x));
    }
}

Tabular tests

RadiusAusgabe
00
3.14-1.2~
-3.141.2~
0.7851~
-0.785-1~
0.52350.577~
-0.5235-0.577~
NaNNaN
InfNaN
-InfNaN