Subject: [Boost-bugs] [Boost C++ Libraries] #9512: trivial bug: sign change for negative values in bessel_i1
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-12-20 12:51:30
#9512: trivial bug: sign change for negative values in bessel_i1
-----------------------------------------+-------------------------
Reporter: Cornelia Strauà <strauss@â¦> | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
Version: Boost 1.55.0 | Severity: Problem
Keywords: |
-----------------------------------------+-------------------------
The function `bessel_i1()` in
`boost/math/special_functions/detail/bessel_i1.hpp` ends with the
following code:
{{{#!python
if (x < 0)
{
value *= -value; // odd function
}
return value;
}}}
Instead of taking the square root, only the sign of `value` should be
changed:
{{{#!python
if (x < 0)
{
value *= -1; // odd function
}
return value;
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9512> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC