跳到主要内容

IMDIV

返回两个复数的商。

语法

expression.IMDIV(arg1, arg2);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
arg1必需ApiRange | ApiName | numberx + yix + yj 形式表示的复数分子或被除数。
arg2必需ApiRange | ApiName | numberx + yix + 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"));