Package org.apache.commons.numbers.gamma
Class Gamma
java.lang.Object
org.apache.commons.numbers.gamma.Gamma
Gamma
function \( \Gamma(x) \).
The gamma
function can be seen to extend the factorial function to cover real and
complex numbers, but with its argument shifted by -1. This
implementation supports real numbers.
This code has been adapted from:
- The Boost
c++implementation<boost/math/special_functions/gamma.hpp>. - The NSWC Library of Mathematics Subroutines double
precision implementation,
DGAMMA.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic doublevalue(double x) Computes the value of \( \Gamma(x) \).
-
Method Details
-
value
Computes the value of \( \Gamma(x) \).- Parameters:
x- Argument.- Returns:
- \( \Gamma(x) \)
-