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

Language Guide / Functions ยท Generated namespace reference

pow

klang::pow

Raises a base to an exponent.

Raises the base to the supplied exponent. In this example, a positive exponent shapes input values from zero to one.

000.250.250.50.50.750.7511ResultInput x
pow(x, 2.5)

Based on std::pow.

Direct call

const signal shaped = pow(sample, 2.5);

Signal flow

const signal shaped = sample >> pow(2.5);