Skip to main content

IMCSCH

Returns the hyperbolic cosecant of a complex number.

Syntax

expression.IMCSCH(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberA complex number expressed in the x + yi or x + yj form.

Returns

number

Example

Return the hyperbolic cosecant of a complex number in a spreadsheet.

// How to get the hyperbolic cosecant in a spreadsheet.

// Use a function to get the hyperbolic cosecant of a complex number in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.IMCSCH("-2+2.5i"));