Function: sum(sum(invert(gradient[0](numbers('yyx') if numbers("per") > numbers('xyy') else numbers("xxy"))), gradient[0](numbers('xyy') if numbers("per") > numbers("xxy") else numbers('yyx'))), invert(gradient[0](numbers('xyy') if numbers("per") > numbers('yyx') else numbers("xxy"))))