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

Language Guide / Functions ยท Generated namespace reference

cos

klang::cos

Cosine of an angle in radians.

Returns 1 at zero radians. For example, cosine can supply the real component of a unit phasor.

-3.14-1-1.57-0.5001.570.53.141ResultInput x (radians)
cos(x)

Based on std::cos.

Direct call

const signal real = cos(phase);

Signal flow

const signal real = phase >> cos;