ILNumerics Ultimate VSILMathgamma Method ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Evaluates the Gamma function at a given point. For more details about this function, see Wikipedia - Gamma function.

[ILNumerics Computing Engine]

Namespace: ILNumerics
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.3.0.0 (5.3.7131.2749)
Syntax

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

Parameters

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

Return Value

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

  • The value of the Gamma function is simply calculated as the exponential of the value found from the natural logarithm of Gamma function.
  • 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