Skip to main content

COSH

Returns the hyperbolic cosine of a number.

Syntax

expression.COSH(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberAny real number for which the hyperbolic cosine will be returned.

Returns

number

Example

Compute the hyperbolic cosine of a value in a spreadsheet.

// What is the hyperbolic cosine result of a number in a spreadsheet?

// Calculate the exponential curve ratio for a given value in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.COSH(3));