跳到主要内容

SEC

返回角度的正割值。

语法

expression.SEC(arg1);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
arg1必需ApiRange | ApiName | number将返回其正割值的弧度角。

返回值

number

示例

此示例演示如何返回角的正割。

// How to get angle's secant.

// Use a function to calculate the secant of an angle.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.SEC(0.785398));