sumx2my2
Sum of (x² − y²) over paired arrays.
Syntax
Section titled “Syntax”v = sumx2my2(array1, array2)Description
Section titled “Description”Returns sum(x.^2 - y.^2) — handy for chi-squared and variance-like calculations.
Example
Section titled “Example”sumx2my2([2 3 4], [1 2 3]) % 4+5+7 = 16