跳到主要内容

MULTINOMIAL

返回数字之和的阶乘与阶乘乘积的比率。

语法

expression.MULTINOMIAL(args);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
args必需ApiRange | ApiName | number最多 255 个将返回多项式的数值。第一个参数是必需的,后续参数是可选的。

返回值

number

示例

此示例演示如何返回数字总和的阶乘与阶乘乘积的比率。

// How to get a result from the ratio of the factorial of a sum of numbers to the product of factorials.

// Use a function to find the ratio of the factorial of a sum of numbers to the product of factorials.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.MULTINOMIAL(2, 0, 0, 0, 0, 3, 0, 0, 0, 0, 4, 0, 0, 0, 0, 5));