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

Language Guide / Functions ยท Generated namespace reference

log

klang::log

Natural logarithm.

Accepts positive inputs. The example limits the input to a positive minimum before taking its logarithm.

0.05-31.04-1.92.02-0.8053.010.29141.39ResultInput x
log(x)

Based on std::log.

Direct call

const signal value = log(max(sample, 0.001));

Signal flow

const signal value = sample >> max(0.001) >> log;