Function: sum(sqrt(sum(minus(numbers("xxx") if numbers('xry') > numbers('yyx') else numbers("xxr"), numbers("xxx")), numbers("xxr") if numbers("xxx") > numbers('xry') else numbers('yyx'))), sum(minus(numbers('xry') if numbers("xxx") > numbers('yyx') else numbers("xxr"), numbers("xxx")), numbers('xry') if numbers('yyx') > numbers("xxx") else numbers("xxr")))