1 #ifndef STAN__MATH__FUNCTIONS__LOG1M_EXP_HPP
2 #define STAN__MATH__FUNCTIONS__LOG1M_EXP_HPP
4 #include <boost/math/tools/promotion.hpp>
6 #include <boost/throw_exception.hpp>
7 #include <boost/math/special_functions/expm1.hpp>
39 inline typename boost::math::tools::promote_args<T>::type
42 return std::numeric_limits<double>::quiet_NaN();
43 else if (a > -0.693147)
fvar< T > expm1(const fvar< T > &x)
boost::math::tools::promote_args< T >::type log1m_exp(const T a)
Calculates the log of 1 minus the exponential of the specified value without overflow log1m_exp(x) = ...
fvar< T > log(const fvar< T > &x)
fvar< T > exp(const fvar< T > &x)
boost::math::tools::promote_args< T >::type log1m(T x)
Return the natural logarithm of one minus the specified value.