ILNumerics Ultimate VS

ILMathgammaLog Method

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Evaluates the natural logarithm of the Gamma function at a given point. For more details about this function, see Wikipedia - Gamma function and Wolfram MathWorld - Log Gamma function.

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static RetArray<double> gammaLog(
	InArray<double> x
)

Parameters

x
Type: ILNumericsInArrayDouble
The point where the function is evaluated.

Return Value

Type: RetArrayDouble
log(gamma(x)) with gamma(x) = from 0 to ∞ ∫(t^(x-1)exp(-t))dt.
Remarks

  • The value of the Gamma function can be found simply using the exponential of the value found from the function. Example: exp(gammaLog(10.0)) will give the value of the gamma function at 10.0.
  • In this particular implementation the positive real numbers are supported.
  • If the given point x is negative the return value will be double.NaN.
  • If the given point x is zero the return value will be double.PositiveInfinity.
  • If any of the given points is double.NaN or double.IsInfinity is true, an ArgumentException will be thrown.
  • If the input array is empty, an empty array will be returned.

[ILNumerics Computing Engine]

See Also

Reference