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

Language Guide / Functions ยท Generated namespace reference

cosh

klang::cosh

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.

-2.51-1.252.2803.571.254.852.56.13ResultInput x
cosh(x)

Based on std::cosh.

Direct call

const signal shaped = cosh(sample) - 1;

Signal flow

const signal shaped = (sample >> cosh) - 1;