Class Gamma

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

public class Gamma
extends java.lang.Object
Gamma function.

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 class is immutable.

  • Constructor Summary

    Constructors 
    Constructor Description
    Gamma()  
  • Method Summary

    Modifier and Type Method Description
    static double value​(double x)
    Computes the value of \( \Gamma(x) \).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • value

      public static double value​(double x)
      Computes the value of \( \Gamma(x) \).

      Based on the NSWC Library of Mathematics Subroutines double precision implementation, DGAMMA.

      Parameters:
      x - Argument.
      Returns:
      \( \Gamma(x) \)