I need a formula for an optimization problem. given e.g. the variables x y z. I need a formula which return "0" (zero) if all variables are exactly the same. E.g. x=5, y=5, z=5. Might be quiet simply. I don´t know... Thx in advance...
2026-03-31 22:44:41.1774997081
Searching for formula: equals zero, if all variables are the same
44 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
How about $x^2+y^2+z^2-xy-yz-zx$? This is a scaled version of $(x-y)^2+(y-z)^2+(z-x)^2$ which is zero iff $x=y=z$.