Hyperbolic functions¶
Table of contents
Hyperbolic functions¶
-
template<typename T>
constexpr return_t<T> cosh(const T x) noexcept¶ Compile-time hyperbolic cosine function.
- Parameters
x – a real-valued input.
- Returns
the hyperbolic cosine function using
\[ \cosh(x) = \frac{\exp(x) + \exp(-x)}{2} \]
Inverse hyperbolic functions¶
-
template<typename T>
constexpr return_t<T> acosh(const T x) noexcept¶ Compile-time inverse hyperbolic cosine function.
- Parameters
x – a real-valued input.
- Returns
the inverse hyperbolic cosine function using
\[ \text{acosh}(x) = \ln \left( x + \sqrt{x^2 - 1} \right) \]