SUMSQ function

SUMSQ(First, Other...) SUMSQ(First; Other...)

First

Number or { Number }

The first parameter.

Other

Number or { Number } (accepts many)

Additional 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).