|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81594 - trunk/boost/math/special_functions/detail
From: john_at_[hidden]
Date: 2012-11-27 12:36:54
Author: johnmaddock
Date: 2012-11-27 12:36:54 EST (Tue, 27 Nov 2012)
New Revision: 81594
URL: http://svn.boost.org/trac/boost/changeset/81594
Log:
Fix bug introduced in last commit!
Text files modified:
trunk/boost/math/special_functions/detail/erf_inv.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/math/special_functions/detail/erf_inv.hpp
==============================================================================
--- trunk/boost/math/special_functions/detail/erf_inv.hpp (original)
+++ trunk/boost/math/special_functions/detail/erf_inv.hpp 2012-11-27 12:36:54 EST (Tue, 27 Nov 2012)
@@ -282,7 +282,7 @@
BOOST_MATH_STD_USING
T derivative = sign * (2 / sqrt(constants::pi<T>())) * exp(-(guess * guess));
T derivative2 = -2 * guess * derivative;
- return boost::math::make_tuple(((sign > 0) ? boost::math::erf(guess, Policy()) : static_cast<T>(boost::math::erfc(guess, Policy())) - target), derivative, derivative2);
+ return boost::math::make_tuple(((sign > 0) ? static_cast<T>(boost::math::erf(guess, Policy()) - target) : static_cast<T>(boost::math::erfc(guess, Policy())) - target), derivative, derivative2);
}
erf_roots(T z, int s) : target(z), sign(s) {}
private:
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