The function SUMSQ returns the sum of squares of all given Number values.

This function takes any number of Number values as input. It will return a single Number: the sum of squares of the given Numbers.

Declaration

SUMSQ(number_1, number_2, ... number_n) -> sum_of_squares

 

Parameters

number_n (type: Number)
The nth individual Number given as input. n can be arbitrarily large; there is no upper limit to the number of Numbers the function SUMSQ will accept.

Return Values

sum_of_squares (type: Number)
The sum of squares of all of the given Numbers.

Examples

The following example takes the Numbers 1, and 2 as input and returns the sum of squares of the two of them:
SUMSQ(1, 2) -> 5

There is no upper limit to the number of Numbers SUMSQ can process as input. The following example takes five Numbers as input: 1, 2, 3, 1, and 2. Note that the Numbers 1 and 2 are given twice, and that SUMSQ processes the second instance of both numbers exactly like every other given Number:

SUMSQ(1, 2, 3, 1, 2) -> 19
 

Was this article helpful?

0 out of 0 found this helpful

Articles in this section