Class Gamma


  • public final class Gamma
    extends java.lang.Object
    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:
    Boost C++ Gamma functions
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Gamma()
      Private constructor.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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 Detail

      • Gamma

        private Gamma()
        Private constructor.
    • Method Detail

      • value

        public static double value​(double x)
        Computes the value of \( \Gamma(x) \).
        Parameters:
        x - Argument.
        Returns:
        \( \Gamma(x) \)