WPILibC++ 2023.4.3-108-ge5452e3
sinh.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  internal
 

Functions

template<typename T >
constexpr T internal::sinh_check (const T x) noexcept
 
template<typename T >
constexpr return_t< T > sinh (const T x) noexcept
 Compile-time hyperbolic sine function. More...
 

Function Documentation

◆ sinh()

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

Compile-time hyperbolic sine function.

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

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