Skip to main content

IMSIN

Returns the sine of a complex number.

Syntax

expression.IMSIN(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

Calculate the sine of a complex number in a spreadsheet.

// How do I find the sine value of a complex number in a spreadsheet?

// Get the sine result for complex number trigonometric operations in a spreadsheet.

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