跳到主要内容

SERIESSUM

Returns the sum of a power series based on the formula.

Syntax

expression.SERIESSUM(arg1, arg2, arg3, arg4);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe input value to the power series.
arg2RequiredApiRange | ApiName | numberThe initial power to which x will be raised.
arg3RequiredApiRange | ApiName | numberThe step by which to increase n for each term in the series.
arg4RequiredApiRange | ApiName | numberA set of coefficients by which each successive power of x is multiplied.

Returns

number

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.SERIESSUM(5, 2, 1, 3));