Skip to content

sumx2py2

Sum of (x² + y²) over paired arrays.

v = sumx2py2(array1, array2)

Returns sum(x.^2 + y.^2).

sumx2py2([2 3], [4 5]) % 4+16+9+25 = 54
  • sumxmy2 — Sum of squared differences between paired arrays.
  • sumx2my2 — Sum of (x² − y²) over paired arrays.