25#ifndef _gcem_log1p_HPP
26#define _gcem_log1p_HPP
48 return x + x * ( - x/T(2) + x * ( x/T(3) + x * ( -x/T(4) + x*x/T(5) ) ) );
83 if (std::is_constant_evaluated()) {
constexpr bool is_nan(const T x) noexcept
Definition is_nan.hpp:39
constexpr T log1p_check(const T x) noexcept
Definition log1p.hpp:54
constexpr T log1p_compute(const T x) noexcept
Definition log1p.hpp:44
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 > log1p(const T x) noexcept
Compile-time natural-logarithm-plus-1 function.
Definition log1p.hpp:80