25#ifndef _gcem_atanh_HPP
26#define _gcem_atanh_HPP
37 return(
log( (T(1) + x)/(T(1) - x) ) / T(2) );
48 GCLIM<T>::quiet_NaN() :
51 GCLIM<T>::quiet_NaN() :
53 sgn(x)*GCLIM<T>::infinity() :
constexpr return_t< T > atanh(const T x) noexcept
Compile-time inverse hyperbolic tangent function.
Definition: atanh.hpp:73
UnitType abs(const UnitType x) noexcept
Compute absolute value.
Definition: math.h:721
dimensionless::scalar_t log(const ScalarUnit x) noexcept
Compute natural logarithm.
Definition: math.h:349
constexpr common_t< T1, T2 > min(const T1 x, const T2 y) noexcept
Compile-time pairwise minimum function.
Definition: min.hpp:35
Definition: Eigen_Colamd.h:50
constexpr bool is_nan(const T x) noexcept
Definition: is_nan.hpp:36
constexpr T atanh_check(const T x) noexcept
Definition: atanh.hpp:43
constexpr T atanh_compute(const T x) noexcept
Definition: atanh.hpp:34
constexpr int sgn(const T x) noexcept
Compile-time sign function.
Definition: sgn.hpp:34