Package org.apache.commons.numbers.gamma
Class BoostMath
- java.lang.Object
-
- org.apache.commons.numbers.gamma.BoostMath
-
final class BoostMath extends java.lang.Object
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 Modifier Constructor Description private
BoostMath()
Private constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static double
powm1(double x, double y)
Returnspow(x, y) - 1
.
-
-
-
Method Detail
-
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
-
-