跳到主要内容

COTH

返回数字的双曲余切值。

语法

expression.COTH(arg1);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
arg1必需ApiRange | ApiName | number将计算其双曲余切的弧度角。其绝对值必须小于 2^27

返回值

number

示例

计算电子表格中数字的双曲余切。

// What is the hyperbolic cotangent of an angle in a spreadsheet?

// Find the inverse hyperbolic tangent relationship in a spreadsheet.

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