Class LogGamma1p

java.lang.Object
org.apache.commons.numbers.gamma.LogGamma1p

final class LogGamma1p extends Object
Function \( \ln \Gamma(1 + x) \). Class is immutable.
  • 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 - if x < -0.5 or x > 1.5.