Skip to main content

IMSUM

Returns the sum of the specified complex numbers.

Syntax

expression.IMSUM(args);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
argsRequiredApiRange | ApiName | stringUp to 255 complex numbers expressed in the x + yi or x + yj form.

Returns

number

Example

Add two complex numbers in a spreadsheet.

// How do I add two complex numbers in a spreadsheet?

// Calculate the sum of multiple complex values in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.IMSUM("1+3i", "0.1+1.5j", "-2+2.5i"));