DADiSP Worksheet Functions > Function Categories > Series and Scalar Math > SUMS

 

SUMS

Purpose:

Computes the point by point sum of any number of input series.

Syntax:

SUMS(series1 , series2, ..., seriesN)

seriesN

-

One or more series.

Returns:

A series or table.

Example:

W1: 0..5

W2: 100..105

W3: sums(W1, W2)

 

W3 == {100, 102, 104, 106, 108, 110}.

Example:

W1: 0..10

W2: 100..105

W3: sums(W1, W2)

 

W3 == {100, 102, 104, 106, 108, 110, 6, 7, 8, 9, 10}.

Example:

sums(W3..W8)

 

sums Windows 3 through 8 and places the result in the current Window.

Remarks:

SUMS operates on both Real and Complex series - returns a Complex series if any of the input series are Complex.

 

Shorter series are padded with 0.0 to the length of the longest series.

 

See VSUMS to compute the sum of input values that can consist of scalars and/or series.

See Also:

AVGS

MEAN

SUM

VSUMS