Policies & Guidelines

SERIES_SUM

Returns SERIES_SUM

Description

Calculates the sum of a power series. Given an array of numbers \[a₀, a₁, a₂, ... , aᵢ\], and the constants x, n and m, the sum is calculated using the formula:

a₀ × x^n + a₁ × x^\(n+m\) + a₂ × x^\(n + 2 × m\) + ... + aᵢ × x^\(n + i × m\)

Function signature

SERIES_SUM(numberx: Number, numbern: Number, numberm: Number, array: Array) => Number

Parameter

Description

Number x

The x value input to the power series.

Number n

The initial power to which to raise x in the power series.

Number m

The additive increment by which to increase the power to which x is raised.

Array

The array or range containing the coefficients of the power series.

Examples

Formula

Return value

SERIES_SUM(1, 2, 3, [1, 2, 3])

6

SERIES_SUM(2, 2, 3, [1, 2, 3])

836

SERIES_SUM(3, 2, 3, [1, 2, 3])

20178