SUMSQ
Last updated
Was this helpful?
Last updated
Was this helpful?
The function SUMSQ returns the sum of squares of all given Number values.
This function takes any number of values as input. It will return a single Number: the sum of squares of the given Numbers.
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.
sum_of_squares (type: Number
) The sum of squares of all of the given Numbers.
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: