SUMX2PY2 function

SUMX2PY2(Numbers1, Numbers2) SUMX2PY2(Numbers1; Numbers2)

Numbers1

{ Number }

The first set of values. This array must have the same size as the other array parameter.

Numbers2

{ Number }

The second set of values. This array must have the same size as the other array parameter.

Returns

Number

The sum of the squares of all elements of the given two arrays.

Returns the sum of the squares of all elements of the given two arrays.

Examples

SUMX2PY2({ 1, 2, 3 }, { 4, 5, 6 })SUMX2PY2({ 1; 2; 3 }; { 4; 5; 6 })

Returns 91 ((1^4 + 4^2) + (2^2 + 5^2) + (3^2 + 6^2)(1^4 + 4^2) + (2^2 + 5^2) + (3^2 + 6^2)).

SUMX2PY2(RANDARRAY(10), RANDARRAY(10))SUMX2PY2(RANDARRAY(10); RANDARRAY(10))

Returns the sum of the squares of all elements of the given two arrays, consisting of random data.