Class GammaGergoNemes

All Implemented Interfaces:
Function<Vector,Double>, RealScalarFunction, UnivariateRealFunction, Gamma

public class GammaGergoNemes extends AbstractUnivariateRealFunction implements Gamma
The Gergo Nemes' algorithm is very simple and quick to compute the Gamma function, if accuracy is not critical. It may work better for large input.
See Also:
  • Constructor Details

    • GammaGergoNemes

      public GammaGergoNemes()
  • Method Details

    • evaluate

      public double evaluate(double x)
      Description copied from interface: Gamma
      Evaluate \(\Gamma(z) = \int_0^\infty e^{-t} t^{z-1} dt\).
      Specified by:
      evaluate in interface Gamma
      Specified by:
      evaluate in interface UnivariateRealFunction
      x - x