IMDIV
返回两个复数的商。
语法
expression.IMDIV(arg1, arg2);
expression - 表示 ApiWorksheetFunction 类的变量。
参数
| 名称 | 必需/可选 | 数据类型 | 默认值 | 描述 |
|---|---|---|---|---|
| arg1 | 必需 | ApiRange | ApiName | number | 以 x + yi 或 x + yj 形式表示的复数分子或被除数。 | |
| arg2 | 必需 | ApiRange | ApiName | number | 以 x + yi 或 x + yj 形式表示的复数分母或除数。 |
返回值
number
示例
此示例演示如何返回两个复数的商。
// How to get the quotient of two comlex numbers.
// Use a function to get the quotient.
let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.IMDIV("-2+2.5i", "0.1+1.5j"));