Package org.apache.commons.numbers.gamma
Class BoostMath
java.lang.Object
org.apache.commons.numbers.gamma.BoostMath
Math functions used by the Boost functions.
This code has been adapted from the Boost
c++
implementations in <boost/math/special_functions/>
.
All work is copyright John Maddock 2006 and subject to the Boost Software License.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static double
powm1
(double x, double y) Returnspow(x, y) - 1
.
-
Constructor Details
-
BoostMath
private BoostMath()Private constructor.
-
-
Method Details
-
powm1
static double powm1(double x, double y) Returnspow(x, y) - 1
. This function is accurate whenx -> 1
ory
is small.Adapted from
boost/math/special_functions/powm1.hpp
. Explicit handling of edges cases (overflow, domain error) using the policy has been removed.- Parameters:
x
- the xy
- the y- Returns:
pow(x, y) - 1
-