25#ifndef _gcem_atanh_HPP
26#define _gcem_atanh_HPP
43 return(
log( (T(1) + x)/(T(1) - x) ) / T(2) );
82 if (std::is_constant_evaluated()) {
constexpr bool is_nan(const T x) noexcept
Definition is_nan.hpp:39
constexpr T atanh_check(const T x) noexcept
Definition atanh.hpp:49
constexpr T atanh_compute(const T x) noexcept
Definition atanh.hpp:40
constexpr T abs(const T x) noexcept
Compile-time absolute value function.
Definition abs.hpp:40
std::numeric_limits< T > GCLIM
Definition gcem_options.hpp:74
constexpr return_t< T > log(const T x) noexcept
Compile-time natural logarithm function.
Definition log.hpp:186
typename std::conditional< std::is_integral< T >::value, double, T >::type return_t
Definition gcem_options.hpp:77
constexpr return_t< T > atanh(const T x) noexcept
Compile-time inverse hyperbolic tangent function.
Definition atanh.hpp:79
constexpr int sgn(const T x) noexcept
Compile-time sign function.
Definition sgn.hpp:37