Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74538 - sandbox/multiprecision/libs/multiprecision/src/functions/gamma
From: e_float_at_[hidden]
Date: 2011-09-23 12:58:43


Author: christopher_kormanyos
Date: 2011-09-23 12:58:42 EDT (Fri, 23 Sep 2011)
New Revision: 74538
URL: http://svn.boost.org/trac/boost/changeset/74538

Log:
- Removed the unused "gamma_util" files.
Removed:
   sandbox/multiprecision/libs/multiprecision/src/functions/gamma/gamma_util.cpp
   sandbox/multiprecision/libs/multiprecision/src/functions/gamma/gamma_util.h

Deleted: sandbox/multiprecision/libs/multiprecision/src/functions/gamma/gamma_util.cpp
==============================================================================
--- sandbox/multiprecision/libs/multiprecision/src/functions/gamma/gamma_util.cpp 2011-09-23 12:58:42 EDT (Fri, 23 Sep 2011)
+++ (empty file)
@@ -1,28 +0,0 @@
-
-// Copyright Christopher Kormanyos 2002 - 2011.
-// Distributed under the Boost Software License, Version 1.0.
-// (See accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-
-// This work is based on an earlier work:
-// "Algorithm 910: A Portable C++ Multiple-Precision System for Special-Function Calculations",
-// in ACM TOMS, {VOL 37, ISSUE 4, (February 2011)} (C) ACM, 2011. http://doi.acm.org/10.1145/1916461.1916469
-
-#include <boost/multiprecision/mp_float_functions.hpp>
-#include "gamma_util.h"
-
-using boost::multiprecision::mp_float;
-
-void GammaUtil::GammaOfPlusXMinusX(const mp_float& x, mp_float& gamma_plus_x, mp_float& gamma_minus_x)
-{
- // Calculate gamma(x) and gamma(-x) without regard for the actual sign of x.
- // In other words, calculate gamma(abs(x)) and set the results appropriately
- // using the reflection formula.
- const bool bo_x_isneg = boost::multiprecision::isneg(x);
- const mp_float abs_x = boost::multiprecision::fabs(x);
- const mp_float gamma_x_pos = boost::multiprecision::gamma(abs_x);
- const mp_float gamma_x_neg = -boost::multiprecision::pi() / ((abs_x * gamma_x_pos) * boost::multiprecision::sin(boost::multiprecision::pi() * abs_x));
-
- gamma_plus_x = bo_x_isneg ? gamma_x_neg : gamma_x_pos;
- gamma_minus_x = bo_x_isneg ? gamma_x_pos : gamma_x_neg;
-}

Deleted: sandbox/multiprecision/libs/multiprecision/src/functions/gamma/gamma_util.h
==============================================================================
--- sandbox/multiprecision/libs/multiprecision/src/functions/gamma/gamma_util.h 2011-09-23 12:58:42 EDT (Fri, 23 Sep 2011)
+++ (empty file)
@@ -1,23 +0,0 @@
-
-// Copyright Christopher Kormanyos 2002 - 2011.
-// Distributed under the Boost Software License, Version 1.0.
-// (See accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-
-// This work is based on an earlier work:
-// "Algorithm 910: A Portable C++ Multiple-Precision System for Special-Function Calculations",
-// in ACM TOMS, {VOL 37, ISSUE 4, (February 2011)} (C) ACM, 2011. http://doi.acm.org/10.1145/1916461.1916469
-
-#ifndef _GAMMA_UTIL_2008_01_10_H_
- #define _GAMMA_UTIL_2008_01_10_H_
-
- #include <boost/multiprecision/mp_float.hpp>
-
- namespace GammaUtil
- {
- void GammaOfPlusXMinusX(const boost::multiprecision::mp_float& x,
- boost::multiprecision::mp_float& gamma_plus_x,
- boost::multiprecision::mp_float& gamma_minus_x);
- }
-
-#endif // _GAMMA_UTIL_2008_01_10_H_


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