Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79982 - trunk/boost/math/special_functions
From: john_at_[hidden]
Date: 2012-08-12 13:03:27


Author: johnmaddock
Date: 2012-08-12 13:03:26 EDT (Sun, 12 Aug 2012)
New Revision: 79982
URL: http://svn.boost.org/trac/boost/changeset/79982

Log:
Fix typo in algorithm selection.
Text files modified:
   trunk/boost/math/special_functions/hankel.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/math/special_functions/hankel.hpp
==============================================================================
--- trunk/boost/math/special_functions/hankel.hpp (original)
+++ trunk/boost/math/special_functions/hankel.hpp 2012-08-12 13:03:26 EDT (Sun, 12 Aug 2012)
@@ -83,7 +83,7 @@
 inline std::complex<T> hankel_imp(int v, T x, const bessel_int_tag&, const Policy& pol, int sign)
 {
    BOOST_MATH_STD_USING
- if((std::abs(v < 200)) && (x > 0))
+ if((std::abs(v) < 200) && (x > 0))
       return std::complex<T>(bessel_jn(v, x, pol), sign * bessel_yn(v, x, pol));
    return hankel_imp(static_cast<T>(v), x, bessel_no_int_tag(), pol, sign);
 }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk