![]() |
Klang C++ 0.7.15
Language Reference (draft)
|
Language Guide / Functions ยท Generated namespace reference Hyperbolic cosine. Returns the same value for positive and negative inputs of equal magnitude. Subtracting 1, as in the example, gives an even curve that passes through zero. Based on cosh
klang::coshstd::cosh.Direct call
const signal shaped = cosh(sample) - 1;Signal flow
const signal shaped = (sample >> cosh) - 1;