Subject: [Boost-bugs] [Boost C++ Libraries] #7415: Wrong domain error detection of atanh for positive arguments
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-09-23 21:14:35
#7415: Wrong domain error detection of atanh for positive arguments
-----------------------------------------------+----------------------------
Reporter: Oleksii <oleksii.taran@â¦> | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-----------------------------------------------+----------------------------
atanh resolves arguments >1 not as 'out of domain', but as 'positive
infinity'
Sample code:
{{{
#include <boost/math/special_functions/atanh.hpp>
int main()
{
::boost::math::atanh(2); // should throw 'domain_error' exception, but
throws 'overflow' exception
return 0;
}
}}}
Patch with fix attached
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7415> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC