v-acos-mathe

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

Berechnet den Arkuskosinus.
v-acos-mathe
@/v-acos-mathe
Berechnet den Arkuskosinus.
Eingabenumber
Zahlen zwischen -1 und 1
v-acos-mathe
Eingabe
Radius
Radiusnumber
Winkel als Radius
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_Eingabe>(ctx);
        emitValue<output_Radius>(ctx, acos(x));
    }
}

Tabular tests

EingabeRadius
01.57~
-1-3.14~
10
23NaN
NaNNaN
InfNaN
-InfNaN