|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r75479 - in sandbox/multiprecision: boost/multiprecision boost/multiprecision/utility libs/multiprecision/example
From: e_float_at_[hidden]
Date: 2011-11-13 17:48:27
Author: christopher_kormanyos
Date: 2011-11-13 17:48:26 EST (Sun, 13 Nov 2011)
New Revision: 75479
URL: http://svn.boost.org/trac/boost/changeset/75479
Log:
- Trivial editing clean-up.
Text files modified:
sandbox/multiprecision/boost/multiprecision/mp_float_efx.hpp | 2 +-
sandbox/multiprecision/boost/multiprecision/utility/util_trapezoid.hpp | 2 +-
sandbox/multiprecision/libs/multiprecision/example/example_005_recursive_trapezoid_integral.cpp | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Modified: sandbox/multiprecision/boost/multiprecision/mp_float_efx.hpp
==============================================================================
--- sandbox/multiprecision/boost/multiprecision/mp_float_efx.hpp (original)
+++ sandbox/multiprecision/boost/multiprecision/mp_float_efx.hpp 2011-11-13 17:48:26 EST (Sun, 13 Nov 2011)
@@ -28,8 +28,8 @@
class mp_float_efx : public mp_float_base
{
public:
- static const boost::int32_t mp_radix = static_cast<boost::int32_t>(10);
static const boost::int32_t mp_float_digits = mp_float_digits10;
+ static const boost::int32_t mp_radix = static_cast<boost::int32_t>(10);
static const boost::int64_t mp_float_max_exp = static_cast<boost::int64_t>(+9223372036854775795LL);
static const boost::int64_t mp_float_min_exp = static_cast<boost::int64_t>(-9223372036854775795LL);
Modified: sandbox/multiprecision/boost/multiprecision/utility/util_trapezoid.hpp
==============================================================================
--- sandbox/multiprecision/boost/multiprecision/utility/util_trapezoid.hpp (original)
+++ sandbox/multiprecision/boost/multiprecision/utility/util_trapezoid.hpp 2011-11-13 17:48:26 EST (Sun, 13 Nov 2011)
@@ -61,7 +61,7 @@
const T ratio = I0 / I;
const T delta = ((ratio > one) ? (ratio - one) : (one - ratio));
- if((k > static_cast<boost::int32_t>(2)) && delta < ranged_function_operation<T>::eps)
+ if((k > static_cast<boost::int32_t>(2)) && (delta < ranged_function_operation<T>::eps))
{
function_operation<T>::op_ok = true;
break;
Modified: sandbox/multiprecision/libs/multiprecision/example/example_005_recursive_trapezoid_integral.cpp
==============================================================================
--- sandbox/multiprecision/libs/multiprecision/example/example_005_recursive_trapezoid_integral.cpp (original)
+++ sandbox/multiprecision/libs/multiprecision/example/example_005_recursive_trapezoid_integral.cpp 2011-11-13 17:48:26 EST (Sun, 13 Nov 2011)
@@ -27,7 +27,7 @@
static const mp_float& my_tol(void)
{
- static const mp_float val("1E-" + boost::lexical_cast<std::string>(std::numeric_limits<mp_float>::digits10 / 2));
+ static const mp_float val("1E-" + boost::lexical_cast<std::string>((std::numeric_limits<mp_float>::digits10 + 1) / 2));
return val;
}
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