summaryrefslogtreecommitdiff
path: root/boost/math/special_functions/acosh.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/math/special_functions/acosh.hpp')
-rw-r--r--boost/math/special_functions/acosh.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/math/special_functions/acosh.hpp b/boost/math/special_functions/acosh.hpp
index 0af5c94c14..3b7edbad3f 100644
--- a/boost/math/special_functions/acosh.hpp
+++ b/boost/math/special_functions/acosh.hpp
@@ -36,7 +36,7 @@ namespace boost
{
BOOST_MATH_STD_USING
- if(x < 1)
+ if((x < 1) || (boost::math::isnan)(x))
{
return policies::raise_domain_error<T>(
"boost::math::acosh<%1%>(%1%)",