COTH
Returns the hyperbolic cotangent of a number.
Syntax
expression.COTH(arg1);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number | The angle in radians for which the hyperbolic cotangent will be calculated. Its absolute value must be less than <em>2^27</em>. |
Returns
number
Example
- Code
- Result
let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.COTH(0.785398));