ILNumerics Ultimate VSILMathbinomialCoefficients Method ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Binomial coefficients of elements in n and k. For more details about this function, see Wikipedia - Binomial coefficient.

[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> binomialCoefficients(
	InArray<int> n,
	InArray<int> k
)

Parameters

n
Type: ILNumericsInArrayInt32
Input array n.
k
Type: ILNumericsInArrayInt32
Input array k.

Return Value

Type: RetArrayDouble
An array of same size as n and k with values of the binomial coefficients.
Remarks

  • If one of the input arrays is empty, an empty array will be returned.
  • If for any component, one has ni < ki, the solution will be double.NaN.
  • If any elements in n and k has the same value, the solution will be +1.0.
  • If any elements in n or k has a negative value, the solution will be double.NaN.
  • If any of the input arrays is null, an ArgumentNullException will be thrown.
  • If n and k size are not equal, an ArgumentException will be thrown.

[ILNumerics Computing Engine]

See Also

Reference