SUMXMY2 function

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

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

Examples

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

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

SUMXMY2(RANDARRAY(10), RANDARRAY(10))SUMXMY2(RANDARRAY(10); RANDARRAY(10))

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