Package org.apache.commons.numbers.gamma
Class LogGamma1p
- java.lang.Object
-
- org.apache.commons.numbers.gamma.LogGamma1p
-
final class LogGamma1p extends java.lang.ObjectFunction \( \ln \Gamma(1 + x) \). Class is immutable.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateLogGamma1p()Private constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublevalue(double x)Computes the function \( \ln \Gamma(1 + x) \) for \( -0.5 \leq x \leq 1.5 \).
-
-
-
Method Detail
-
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:
java.lang.IllegalArgumentException- ifx < -0.5orx > 1.5.
-
-