Skip to main content

CSCH

Returns the hyperbolic cosecant of an angle.

Syntax

expression.CSCH(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe angle in radians for which the hyperbolic cosecant will be calculated. Its absolute value must be less than <em>2^27</em>.

Returns

number

Example

This example shows how to the hyperbolic cosecant of an angle.

// How to return hyperbolic cosecant.

// Use function to get the hyperbolic cosecant of an angle.

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.CSCH(0.785398));