WPILibC++ 2023.4.3
cosh.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  internal
 

Functions

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

Function Documentation

◆ cosh()

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

Compile-time hyperbolic cosine function.

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

\[ \cosh(x) = \frac{\exp(x) + \exp(-x)}{2} \]