Opened 5 years ago

Closed 5 years ago

#7416 closed Bugs (fixed)

::boost::math::asinh ignores supplied policy for huge negative arguments

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


Sample code:

#include <boost/math/special_functions/asinh.hpp>

int main()
        using namespace ::boost::math::policies;

        // should not throw
        // but throws "numeric overflow" error
        ::boost::math::asinh(-INFINITY, make_policy(overflow_error<ignore_error>()));

        return 0;

Patch with possible fix attached

Attachments (2)

asinh_negative_infinity_showcase.cpp (261 bytes) - added by Oleksii <oleksii.taran@…> 5 years ago.
Sample code that shows bug
asinh_ignore_policy_fix.patch (470 bytes) - added by Oleksii <oleksii.taran@…> 5 years ago.
Patch with possible fix

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by Oleksii <oleksii.taran@…>

Sample code that shows bug

Changed 5 years ago by Oleksii <oleksii.taran@…>

Patch with possible fix

comment:1 Changed 5 years ago by johnmaddock

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

(In [80695]) Fix improper overflow error handling in asinh.hpp. Update asinh and acosh test cases. Add fixes to release notes and regenerate docs. Fixes #7416.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain johnmaddock.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.