Go to the source code of this file.
|
template<typename T > |
constexpr T | internal::tanh_cf (const T xx, const int depth) noexcept |
|
template<typename T > |
constexpr T | internal::tanh_begin (const T x) noexcept |
|
template<typename T > |
constexpr T | internal::tanh_check (const T x) noexcept |
|
template<typename T > |
constexpr return_t< T > | tanh (const T x) noexcept |
| Compile-time hyperbolic tangent function. More...
|
|
◆ tanh()
template<typename T >
constexpr return_t< T > tanh |
( |
const T |
x | ) |
|
|
constexprnoexcept |
Compile-time hyperbolic tangent function.
- Parameters
-
- Returns
- the hyperbolic tangent function using
\[ \tanh(x) = \dfrac{x}{1 + \dfrac{x^2}{3 + \dfrac{x^2}{5 + \dfrac{x^2}{7 + \ddots}}}} \]