Klang C++ 0.7.15
Language Reference (draft)
Loading...
Searching...
No Matches
log1p

Language Guide / Functions · Generated namespace reference

log1p

klang::log1p

Natural logarithm of one plus the argument.

Computes log(1 + x) accurately near zero. The argument must be greater than −1 for a finite result.

-0.95-30.288-1.841.53-0.6932.760.45841.61ResultInput x
log1p(x)

Based on std::log1p.

Direct call

const signal shaped = log1p(abs(sample));

Signal flow

const signal shaped = sample >> abs >> log1p;