SUMX2MY2 (Numbers1, Numbers2) SUMX2MY2 (Numbers1; Numbers2)

Numbers1

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

Numbers2

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

Returns

Number 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 ^ 2 - 4 ^ 2) + (2 ^ 2 - 5 ^ 2) + (3 ^ 2 - 6 ^ 2)(1 ^ 2 - 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.

fxEngine Shell Want this in your own terminal? A standalone version is coming. Get notified.
Loading fxEngine Shell