Search:
Login
Help/Guide
About Trac
Preferences
Wiki
Timeline
Roadmap
View Tickets
Search
Context Navigation
Back to Ticket #7416
Ticket #7416
: asinh_negative_infinity_showcase.cpp
File asinh_negative_infinity_showcase.cpp,
261 bytes
(added by
Oleksii <oleksii.taran@…>
,
10 years ago
)
Sample code that shows bug
Line
1
#include
<boost/math/special_functions/asinh.hpp>
2
3
int
main
()
4
{
5
using
namespace
::
boost
::
math
::
policies
;
6
7
// should not throw
8
// but throws "numeric overflow" error
9
::
boost
::
math
::
asinh
(
-
INFINITY
,
make_policy
(
overflow_error
<
ignore_error
>
()));
10
11
return
0
;
12
}
Download in other formats:
Original Format