IMath.Multinomial

Syntax

Multinomial(Values: Array): Double;

Parameters

Values. Array of integer numbers.

Description

The Multinominal method returns the ratio of the factorial of the sum of values to the factorials product.

Comments

The value of each element of the array must be in [0;170] interval.

It is required to use an array of value of the Integer type.

The function works correctly with both one-dimension and two-dimension arrays.

Example

To execute the example, add a link to the MathFin system assembly.

Sub UserProc;
Var
    r: Double;
    Arr: Array[3Of Integer;
Begin
    Arr[0] := 2;
    Arr[1] := 3;
    Arr[2] := 4;
    r := Math.Multinomial(Arr);
    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays the relation result equal to 1260.

See also:

IMath