WPILibC++ 2023.4.3
expm1.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  internal
 

Functions

template<typename T >
constexpr T internal::expm1_compute (const T x) noexcept
 
template<typename T >
constexpr T internal::expm1_check (const T x) noexcept
 
template<typename T >
constexpr return_t< T > expm1 (const T x) noexcept
 Compile-time exponential-minus-1 function. More...
 

Function Documentation

◆ expm1()

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

Compile-time exponential-minus-1 function.

Parameters
xa real-valued input.
Returns
\( \exp(x) - 1 \) using

\[ \exp(x) = \sum_{k=0}^\infty \dfrac{x^k}{k!} \]