WPILibC++ 2023.4.3
acosh.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  internal
 

Functions

template<typename T >
constexpr T internal::acosh_compute (const T x) noexcept
 
template<typename T >
constexpr return_t< T > acosh (const T x) noexcept
 Compile-time inverse hyperbolic cosine function. More...
 

Function Documentation

◆ acosh()

template<typename T >
constexpr return_t< T > acosh ( const T  x)
constexprnoexcept

Compile-time inverse hyperbolic cosine function.

Parameters
xa real-valued input.
Returns
the inverse hyperbolic cosine function using

\[ \text{acosh}(x) = \ln \left( x + \sqrt{x^2 - 1} \right) \]