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

Language Guide / Functions ยท Generated API signature

power

klang::power

Raises a value to a power.

Raise an arithmetic base to an exponent. The signal-flow form uses pow.

0010.52131.542ResultInput x
power(x, 0.5)

General exponents use std::pow.

Direct call

const auto ratio = klang::power(2.0, 0.5);

Signal flow

const signal ratio = signal(2) >> pow(0.5);