SUMSQ
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
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:
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:
Last updated