WPILibC++ 2023.4.3
atanh.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  internal
 

Functions

template<typename T >
constexpr T internal::atanh_compute (const T x) noexcept
 
template<typename T >
constexpr T internal::atanh_check (const T x) noexcept
 
template<typename T >
constexpr return_t< T > atanh (const T x) noexcept
 Compile-time inverse hyperbolic tangent function. More...
 

Function Documentation

◆ atanh()

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

Compile-time inverse hyperbolic tangent function.

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

\[ \text{atanh}(x) = \frac{1}{2} \ln \left( \frac{1+x}{1-x} \right) \]