Package org.apache.commons.numbers.gamma
Class LogGamma1p
java.lang.Object
org.apache.commons.numbers.gamma.LogGamma1p
Function \( \ln \Gamma(1 + x) \).
Class is immutable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
value
(double x) Computes the function \( \ln \Gamma(1 + x) \) for \( -0.5 \leq x \leq 1.5 \).
-
Constructor Details
-
LogGamma1p
private LogGamma1p()Private constructor.
-
-
Method Details
-
value
public static double value(double x) Computes the function \( \ln \Gamma(1 + x) \) for \( -0.5 \leq x \leq 1.5 \). This implementation is based on the double precision implementation in the NSWC Library of Mathematics Subroutines,DGMLN1
.- Parameters:
x
- Argument.- Returns:
- \( \ln \Gamma(1 + x) \)
- Throws:
IllegalArgumentException
- ifx < -0.5
orx > 1.5
.
-