ACOT
Returns the arccotangent of a number, in radians in the range from 0 to Pi.
Syntax
expression.ACOT(arg1);
expression - A variable that represents a ApiWorksheetFunction class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| arg1 | Required | ApiRange | ApiName | number | The angle cotangent. |
Returns
number
Example
Calculate the arccotangent of a number in radians in a spreadsheet.
// Get the inverse cotangent value using a trigonometric function in a spreadsheet.
// Place the arccotangent result into a cell for reference in a spreadsheet.
let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.ACOT(0));