Boost C++ Libraries: Ticket #7415: Wrong domain error detection of atanh for positive arguments https://svn.boost.org/trac10/ticket/7415 <p> atanh resolves arguments &gt;1 not as 'out of domain', but as 'positive infinity' </p> <p> Sample code: </p> <pre class="wiki">#include &lt;boost/math/special_functions/atanh.hpp&gt; int main() { ::boost::math::atanh(2); // should throw 'domain_error' exception, but throws 'overflow' exception return 0; } </pre><p> Patch with fix attached </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7415 Trac 1.4.3 Oleksii <oleksii.taran@…> Sun, 23 Sep 2012 21:16:30 GMT attachment set https://svn.boost.org/trac10/ticket/7415 https://svn.boost.org/trac10/ticket/7415 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_atanh_fix.patch</span> </li> </ul> <p> patch with fix </p> Ticket John Maddock Mon, 24 Sep 2012 16:23:09 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7415#comment:1 https://svn.boost.org/trac10/ticket/7415#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/80692" title="Fix atanh error handling. Add extra tests to catch above bug. Fixes #7415.">[80692]</a>) Fix atanh error handling. Add extra tests to catch above bug. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7415" title="#7415: Bugs: Wrong domain error detection of atanh for positive arguments (closed: fixed)">#7415</a>. </p> Ticket