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

Language Guide / Functions ยท Generated namespace reference

acosh

klang::acosh

Inverse hyperbolic cosine.

Accepts values from 1 upwards. For example, applying it to 1 + abs(sample) gives a curve that starts at zero for a silent input.

1020.57331.1541.7252.29ResultInput x
acosh(x)

Based on std::acosh.

Direct call

const signal shaped = acosh(1 + abs(sample));

Signal flow

const signal shifted = 1 + abs(sample);
const signal shaped = shifted >> acosh;