v-log-e-mathe

hio/nwt-gus-hi/v-log-e-mathe

Berechnet den natürlichen Logarithmus einer Zahl.
v-log-e-mathe
@/v-log-e-mathe
Berechnet den natürlichen Logarithmus einer Zahl.
Zahlnumber
v-log-e-mathe
Zahl
ln
lnnumber
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_Zahl>(ctx);
        emitValue<output_ln>(ctx, log(x));
    }
}

Tabular tests

Zahlln
0-Inf
-1NaN
10
20.69315~
0.2-1.6094~
NaNNaN
InfInf
-InfNaN