v-basis-mathe

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

Berechnet die Potenz von `BASIS`, erhöht um den Exponenten `EXP`.
v-basis-mathe
@/v-basis-mathe
Berechnet die Potenz von `BASIS`, erhöht um den Exponenten `EXP`.
Basisnumber
Exponentnumber
v-basis-mathe
Basis
Exponent
Ausgabe
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 base = getValue<input_Basis>(ctx);
        Number exponent = getValue<input_Exponent>(ctx);
        emitValue<output_Ausgabe>(ctx, pow(base, exponent));
    }
}

Tabular tests

BasisExponentAusgabe
001
101
NaN01
-121
-13-1
0.2530.015625
2-10.5
2NaNNaN
2InfInf
2-Inf0
InfInfInf
Inf-Inf0
Inf2Inf
-Inf2Inf
NaN2NaN
NaN-5NaN