Click or drag to resize

SpecialFunctionsMultinomial Method

Computes the multinomial coefficient: n choose n1, n2, n3, ...

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double Multinomial(
	int n,
	int[] ni
)

Parameters

n  Int32
A nonnegative value n.
ni  Int32
An array of nonnegative values that sum to n.

Return Value

Double
The multinomial coefficient.
Exceptions
ExceptionCondition
ArgumentNullExceptionif ni is .
ArgumentExceptionIf n or any of the ni are negative.
ArgumentExceptionIf the sum of all ni is not equal to n.
See Also