IMTAN
返回复数的正切值。
语法
expression.IMTAN(arg1);
expression - 表示 ApiWorksheetFunction 类的变量。
参数
| 名称 | 必需/可选 | 数据类型 | 默认值 | 描述 |
|---|---|---|---|---|
| arg1 | 必需 | ApiRange | ApiName | number | 以 x + yi 或 x + yj 形式表示的复数。 |
返回值
number
示例
此示例演示如何返回复数的正切。
// How to get a tangent of a complex numbers.
// Use a function to get the tangent.
let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.IMTAN("-2+2.5i"));