跳到主要内容

IMCONJUGATE

返回复数的共轭复数。

语法

expression.IMCONJUGATE(arg1);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
arg1必需ApiRange | ApiName | numberx + yix + yj 形式表示的复数。

返回值

number

示例

获取电子表格中数字的复共轭。

// How do I find the conjugate of a complex number in a spreadsheet?

// Reflect a complex number across the real axis in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.IMCONJUGATE("-2+2.5i"));