跳到主要内容

IMSEC

返回复数的正割值。

语法​

expression.IMSEC(arg1);

expression - 表示 ApiWorksheetFunction 类的变量。

参数​

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

返回值​

number

示例​

计算电子表格中复数的正割。

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

// Get the secant result for complex number trigonometric operations in a spreadsheet.

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