SUMX2MY2 function

SUMX2MY2(Numbers1, Numbers2) SUMX2MY2(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 differences between the corresponding squared elements of the given two arrays.

Returns the sum of the differences between the corresponding squared elements of the given two arrays.

Examples

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

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

SUMX2MY2(RANDARRAY(10), RANDARRAY(10))SUMX2MY2(RANDARRAY(10); RANDARRAY(10))

Returns the sum of the differences between the corresponding squared elements of the given two arrays, consisting of random data.