Opened 10 years ago
Closed 10 years ago
#7415 closed Bugs (fixed)
Wrong domain error detection of atanh for positive arguments
| Reported by: | Owned by: | John Maddock | |
|---|---|---|---|
| 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 (1)
Change History (2)
by , 10 years ago
| Attachment: | boost_atanh_fix.patch added |
|---|
comment:1 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

patch with fix