SUMSQ function

SUMSQ(firstParameter, parameters...) SUMSQ(firstParameter; parameters...)

firstParameter — Number or { Number }

The first parameter.

parameters — Number or { Number } (accepts many)

The remaining parameters.

Returns — Number

The sum of all squares.

Squares a set of numbers and returns the sum of all squares.

Examples

SUMSQ(2, 3)SUMSQ(2; 3)

Returns 13 (2 ^ 2 + 3 ^ 22 ^ 2 + 3 ^ 2).

SUMSQ(5, 9)SUMSQ(5; 9)

Returns 106 (5 ^ 2 + 9 ^ 25 ^ 2 + 9 ^ 2).

SUMSQ({ 5 }, 9)SUMSQ({ 5 }; 9)

Returns 106 (5 ^ 2 + 9 ^ 25 ^ 2 + 9 ^ 2).

SUMSQ({ 5 }, { 9 })SUMSQ({ 5 }; { 9 })

Returns 106 (5 ^ 2 + 9 ^ 25 ^ 2 + 9 ^ 2).

SUMSQ({ 5, 9 })SUMSQ({ 5; 9 })

Returns 106 (5 ^ 2 + 9 ^ 25 ^ 2 + 9 ^ 2).