Modify

Ticket #7416 (closed Bugs: fixed)

Opened 19 months ago

Last modified 19 months ago

::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:

Description

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

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

Change History

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

Sample code that shows bug

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

Patch with possible fix

comment:1 Changed 19 months ago by johnmaddock

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

(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.

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.