public class GammaLanczos extends AbstractUnivariateRealFunction implements Gamma
BigDecimal.Function.EvaluationException| Constructor and Description |
|---|
GammaLanczos()
Construct an instance of a Gamma function, computed using the Lanczos approximation.
|
GammaLanczos(double g,
int n,
int scale)
Construct an instance of a Gamma function, computed using the Lanczos approximation.
|
| Modifier and Type | Method and Description |
|---|---|
double |
evaluate(double x)
Evaluate \(\Gamma(z) = \int_0^\infty e^{-t} t^{z-1} dt\).
|
evaluatedimensionOfDomain, dimensionOfRangeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdimensionOfDomain, dimensionOfRangepublic GammaLanczos()
public GammaLanczos(double g,
int n,
int scale)
g = 607.0 / 128.0;
n = 15;
scale = 30;
g - gn - nscale - precisionpublic double evaluate(double x)
Gammaevaluate in interface UnivariateRealFunctionevaluate in interface Gammax - xCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.