跳到主要内容

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 <em>x + yi</em> or <em>x + yj</em> form.

Returns

number

Example

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