Modify

Ticket #7415 (closed Bugs: fixed)

Opened 19 months ago

Last modified 19 months ago

Wrong domain error detection of atanh for positive arguments

Reported by: Oleksii <oleksii.taran@…> Owned by: johnmaddock
Milestone: To Be Determined Component: math
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

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

Attachments

boost_atanh_fix.patch Download (1.1 KB) - added by Oleksii <oleksii.taran@…> 19 months ago.
patch with fix

Change History

Changed 19 months ago by Oleksii <oleksii.taran@…>

patch with fix

comment:1 Changed 19 months ago by johnmaddock

  • Status changed from new to closed
  • Resolution set to fixed

(In [80692]) Fix atanh error handling. Add extra tests to catch above bug. Fixes #7415.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.